qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 121531: target/i386: Fix calculation of LOCK


From: Paolo Bonzini
Subject: [Qemu-commits] [qemu/qemu] 121531: target/i386: Fix calculation of LOCK NEG eflags
Date: Thu, 03 Nov 2022 07:56:38 -0700

  Branch: refs/heads/staging
  Home:   https://github.com/qemu/qemu
  Commit: 121531751087ad3f8d87ad17068835bbcd14fb02
      
https://github.com/qemu/qemu/commit/121531751087ad3f8d87ad17068835bbcd14fb02
  Author: Qi Hu <huqi@loongson.cn>
  Date:   2022-10-31 (Mon, 31 Oct 2022)

  Changed paths:
    M target/i386/tcg/translate.c

  Log Message:
  -----------
  target/i386: Fix calculation of LOCK NEG eflags

After:

        lock negl -0x14(%rbp)
        pushf
        pop    %rax

%rax will contain the wrong value because the "lock neg" calculates the
wrong eflags.  Simple test:

        #include <assert.h>

        int main()
        {
          __volatile__ unsigned test = 0x2363a;
          __volatile__ char cond = 0;
          asm(
              "lock negl %0 \n\t"
              "sets %1"
              : "=m"(test), "=r"(cond));
          assert(cond & 1);
          return 0;
        }

Reported-by: Jinyang Shen <shenjinyang@loongson.cn>
Co-Developed-by: Xuehai Chen <chenxuehai@loongson.cn>
Signed-off-by: Xuehai Chen <chenxuehai@loongson.cn>
Signed-off-by: Qi Hu <huqi@loongson.cn>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>


  Commit: c891c24b1a4f5496cdb5f6afff9dae146334c7d3
      
https://github.com/qemu/qemu/commit/c891c24b1a4f5496cdb5f6afff9dae146334c7d3
  Author: Claudio Imbrenda <imbrenda@linux.ibm.com>
  Date:   2022-10-31 (Mon, 31 Oct 2022)

  Changed paths:
    A include/qemu/async-teardown.h
    M meson.build
    M os-posix.c
    M qemu-options.hx
    A util/async-teardown.c
    M util/meson.build

  Log Message:
  -----------
  os-posix: asynchronous teardown for shutdown on Linux

This patch adds support for asynchronously tearing down a VM on Linux.

When qemu terminates, either naturally or because of a fatal signal,
the VM is torn down. If the VM is huge, it can take a considerable
amount of time for it to be cleaned up. In case of a protected VM, it
might take even longer than a non-protected VM (this is the case on
s390x, for example).

Some users might want to shut down a VM and restart it immediately,
without having to wait. This is especially true if management
infrastructure like libvirt is used.

This patch implements a simple trick on Linux to allow qemu to return
immediately, with the teardown of the VM being performed
asynchronously.

If the new commandline option -async-teardown is used, a new process is
spawned from qemu at startup, using the clone syscall, in such way that
it will share its address space with qemu.The new process will have the
name "cleanup/<QEMU_PID>". It will wait until qemu terminates
completely, and then it will exit itself.

This allows qemu to terminate quickly, without having to wait for the
whole address space to be torn down. The cleanup process will exit
after qemu, so it will be the last user of the address space, and
therefore it will take care of the actual teardown. The cleanup
process will share the same cgroups as qemu, so both memory usage and
cpu time will be accounted properly.

If possible, close_range will be used in the cleanup process to close
all open file descriptors. If it is not available or if it fails, /proc
will be used to determine which file descriptors to close.

If the cleanup process is forcefully killed with SIGKILL before the
main qemu process has terminated completely, the mechanism is defeated
and the teardown will not be asynchronous.

This feature can already be used with libvirt by adding the following
to the XML domain definition to pass the parameter to qemu directly:

  <commandline xmlns="http://libvirt.org/schemas/domain/qemu/1.0";>
  <arg value='-async-teardown'/>
  </commandline>

Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: Murilo Opsfelder Araujo <muriloo@linux.ibm.com>
Tested-by: Murilo Opsfelder Araujo <muriloo@linux.ibm.com>
Message-Id: <20220812133453.82671-1-imbrenda@linux.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>


  Commit: 19e2a9fb9da067acba95b3be83588bda5a3f6a99
      
https://github.com/qemu/qemu/commit/19e2a9fb9da067acba95b3be83588bda5a3f6a99
  Author: Zeng Guang <guang.zeng@intel.com>
  Date:   2022-10-31 (Mon, 31 Oct 2022)

  Changed paths:
    M hw/i386/x86.c
    M target/i386/kvm/kvm-stub.c
    M target/i386/kvm/kvm.c
    M target/i386/kvm/kvm_i386.h

  Log Message:
  -----------
  target/i386: Set maximum APIC ID to KVM prior to vCPU creation

Specify maximum possible APIC ID assigned for current VM session to KVM
prior to the creation of vCPUs. By this setting, KVM can set up VM-scoped
data structure indexed by the APIC ID, e.g. Posted-Interrupt Descriptor
pointer table to support Intel IPI virtualization, with the most optimal
memory footprint.

It can be achieved by calling KVM_ENABLE_CAP for KVM_CAP_MAX_VCPU_ID
capability once KVM has enabled it. Ignoring the return error if KVM
doesn't support this capability yet.

Signed-off-by: Zeng Guang <guang.zeng@intel.com>
Acked-by: Peter Xu <peterx@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20220825025246.26618-1-guang.zeng@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>


  Commit: eff3de52f265df39c6fc668415ad317ec1f24051
      
https://github.com/qemu/qemu/commit/eff3de52f265df39c6fc668415ad317ec1f24051
  Author: Greg Kurz <groug@kaod.org>
  Date:   2022-10-31 (Mon, 31 Oct 2022)

  Changed paths:
    M util/log.c

  Log Message:
  -----------
  util/log: Close per-thread log file on thread termination

When `-D ${logfile} -d tid` is passed, qemu_log_trylock() creates
a dedicated log file for the current thread and opens it. The
corresponding file descriptor is cached in a __thread variable.
Nothing is done to close the corresponding file descriptor when the
thread terminates though and the file descriptor is leaked.

The issue was found during code inspection and reproduced manually.

Fix that with an atexit notifier.

Fixes: 4e51069d6793 ("util/log: Support per-thread log files")
Cc: richard.henderson@linaro.org
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <20221021105734.555797-1-groug@kaod.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>


  Commit: d38cc6fd1cafc3f834bb529f79bfc23089e9e54f
      
https://github.com/qemu/qemu/commit/d38cc6fd1cafc3f834bb529f79bfc23089e9e54f
  Author: Klaus Jensen <k.jensen@samsung.com>
  Date:   2022-11-02 (Wed, 02 Nov 2022)

  Changed paths:
    M hw/nvme/ctrl.c
    M hw/nvme/nvme.h

  Log Message:
  -----------
  hw/nvme: reenable cqe batching

Commit 2e53b0b45024 ("hw/nvme: Use ioeventfd to handle doorbell
updates") had the unintended effect of disabling batching of CQEs.

This patch changes the sq/cq timers to bottom halfs and instead of
calling nvme_post_cqes() immediately (causing an interrupt per cqe), we
defer the call.

                   | iops
  -----------------+------
    baseline       | 138k
    +cqe batching  | 233k

Fixes: 2e53b0b45024 ("hw/nvme: Use ioeventfd to handle doorbell updates")
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Jinhao Fan <fanjinhao21s@ict.ac.cn>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>


  Commit: 632cb6cf07122b330d8ef419ec2f4aab561a9fba
      
https://github.com/qemu/qemu/commit/632cb6cf07122b330d8ef419ec2f4aab561a9fba
  Author: Francis Pravin Antony Michael Raj <francis.michael@solidigm.com>
  Date:   2022-11-02 (Wed, 02 Nov 2022)

  Changed paths:
    M hw/nvme/ctrl.c

  Log Message:
  -----------
  hw/nvme: Abort copy command when format is one while pif

As per the NVMe Command Set specification Section 3.2.2, if

  i)  The namespace is formatted to use 16b Guard Protection
      Information (i.e., pif = 0) and
  ii) The Descriptor Format is not cleared to 0h

Then the copy command should be aborted with the status code of Invalid
Namespace or Format

Fixes: 44219b6029fc ("hw/nvme: 64-bit pi support")
Signed-off-by: Francis Pravin Antony Michael Raj <francis.michael@solidigm.com>
Signed-off-by: Jonathan Derrick <jonathan.derrick@solidigm.com>
Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>


  Commit: 03a60ae9cac546d05b076676491ed1606f9d9066
      
https://github.com/qemu/qemu/commit/03a60ae9cac546d05b076676491ed1606f9d9066
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2022-11-02 (Wed, 02 Nov 2022)

  Changed paths:
    M target/i386/tcg/sysemu/excp_helper.c

  Log Message:
  -----------
  target/i386: Fix test for paging enabled

If CR0.PG is unset, pg_mode will be zero, but it will also be zero
for non-PAE/non-PSE page tables with CR0.WP=0.  Restore the
correct test for paging enabled.

Fixes: 98281984a37 ("target/i386: Add MMU_PHYS_IDX and MMU_NESTED_IDX")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1269
Reported-by: Andreas Gustafsson <gson@gson.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20221102091232.1092552-1-richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>


  Commit: dcd86148e23509fb2cedeb5ac38c20763b71141f
      
https://github.com/qemu/qemu/commit/dcd86148e23509fb2cedeb5ac38c20763b71141f
  Author: Helge Deller <deller@gmx.de>
  Date:   2022-11-02 (Wed, 02 Nov 2022)

  Changed paths:
    M linux-user/hppa/cpu_loop.c

  Log Message:
  -----------
  linux-user/hppa: Detect glibc ABORT_INSTRUCTION and EXCP_BREAK handler

The glibc on the hppa platform uses the "iitlbp %r0,(%sr0, %r0)"
assembler instruction as ABORT_INSTRUCTION.
If this (in userspace context) illegal assembler statement is found,
dump the registers and report the failure to userspace the same way as
the Linux kernel on physical hardware.

For other illegal instructions report TARGET_ILL_ILLOPC instead of
TARGET_ILL_ILLOPN as si_code.

Additionally add the missing EXCP_BREAK exception handler which occurs
when the "break x,y" assembler instruction is executed and report
EXCP_ASSIST traps.

Signed-off-by: Helge Deller <deller@gmx.de>

Message-Id: <Y1osHVsylkuZNUnY@p100>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: af804f39cc7d3e0bed1c20c414cb43c1662c4465
      
https://github.com/qemu/qemu/commit/af804f39cc7d3e0bed1c20c414cb43c1662c4465
  Author: Helge Deller <deller@gmx.de>
  Date:   2022-11-02 (Wed, 02 Nov 2022)

  Changed paths:
    M linux-user/strace.list
    M linux-user/syscall.c

  Log Message:
  -----------
  linux-user: Add close_range() syscall

Signed-off-by: Helge Deller <deller@gmx.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <Y1dLJoEDhJ2AAYDn@p100>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 8b95210fcb2330dd3b682ff3a5a734881baa8bef
      
https://github.com/qemu/qemu/commit/8b95210fcb2330dd3b682ff3a5a734881baa8bef
  Author: Helge Deller <deller@gmx.de>
  Date:   2022-11-02 (Wed, 02 Nov 2022)

  Changed paths:
    M linux-user/strace.list

  Log Message:
  -----------
  linux-user: Add strace output for timer_settime64() syscall

Add missing timer_settime64() strace output and specify format for
timer_settime().

Signed-off-by: Helge Deller <deller@gmx.de>

Message-Id: <Y1b5eIXFoMRDcDL9@p100>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 16c81dd563b94e9392a578ccf5aa762d01e8f165
      
https://github.com/qemu/qemu/commit/16c81dd563b94e9392a578ccf5aa762d01e8f165
  Author: Icenowy Zheng <uwu@icenowy.me>
  Date:   2022-11-02 (Wed, 02 Nov 2022)

  Changed paths:
    M linux-user/syscall.c

  Log Message:
  -----------
  linux-user: always translate cmsg when recvmsg

It's possible that a message contains both normal payload and ancillary
data in the same message, and even if no ancillary data is available
this information should be passed to the target, otherwise the target
cmsghdr will be left uninitialized and the target is going to access
uninitialized memory if it expects cmsg.

Always call the function that translate cmsg when recvmsg, because that
function should be empty-cmsg-safe (it creates an empty cmsg in the
target).

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20221028081220.1604244-1-uwu@icenowy.me>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: c6c7c3ce9bf5442006e502b9323e952e7a231da2
      
https://github.com/qemu/qemu/commit/c6c7c3ce9bf5442006e502b9323e952e7a231da2
  Author: Xiaojuan Yang <yangxiaojuan@loongson.cn>
  Date:   2022-11-03 (Thu, 03 Nov 2022)

  Changed paths:
    M hw/intc/loongarch_extioi.c
    M hw/intc/trace-events

  Log Message:
  -----------
  hw/intc: Convert the memops to with_attrs in LoongArch extioi

Converting the MemoryRegionOps read/write handlers to
with_attrs in LoongArch extioi emulation.

Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20221021015307.2570844-2-yangxiaojuan@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>


  Commit: f429b8bb64b4b1a79987fe62995615972dcff6da
      
https://github.com/qemu/qemu/commit/f429b8bb64b4b1a79987fe62995615972dcff6da
  Author: Xiaojuan Yang <yangxiaojuan@loongson.cn>
  Date:   2022-11-03 (Thu, 03 Nov 2022)

  Changed paths:
    M hw/intc/loongarch_extioi.c
    M target/loongarch/iocsr_helper.c

  Log Message:
  -----------
  hw/intc: Fix LoongArch extioi coreisr accessing

1. When cpu read or write extioi COREISR reg, it should access
the reg belonged to itself, so the cpu index of 's->coreisr'
is current cpu number. Using MemTxAttrs' requester_id to get
the cpu index.
2. it need not to mask 0x1f when calculate the coreisr array index.

Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20221021015307.2570844-3-yangxiaojuan@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>


  Commit: b329b0010e2dd0c34adb3a4eba22485cbec25e1b
      
https://github.com/qemu/qemu/commit/b329b0010e2dd0c34adb3a4eba22485cbec25e1b
  Author: Xiaojuan Yang <yangxiaojuan@loongson.cn>
  Date:   2022-11-03 (Thu, 03 Nov 2022)

  Changed paths:
    M hw/loongarch/virt.c
    M include/hw/loongarch/virt.h

  Log Message:
  -----------
  hw/loongarch: Load FDT table into dram memory space

Load FDT table into dram memory space, and the addr is 2 MiB.
Since lowmem region starts from 0, FDT base address is located
at 2 MiB to avoid NULL pointer access.

Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Acked-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20221028014007.2718352-2-yangxiaojuan@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>


  Commit: 981ec2836e1f80b18038bfdc45631685b7689a17
      
https://github.com/qemu/qemu/commit/981ec2836e1f80b18038bfdc45631685b7689a17
  Author: Xiaojuan Yang <yangxiaojuan@loongson.cn>
  Date:   2022-11-03 (Thu, 03 Nov 2022)

  Changed paths:
    M hw/loongarch/virt.c
    M include/hw/pci-host/ls7a.h

  Log Message:
  -----------
  hw/loongarch: Improve fdt for LoongArch virt machine

Add new items into LoongArch FDT, including rtc and uart info.

Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20221028014007.2718352-3-yangxiaojuan@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>


  Commit: ce0d38a97f9f714abe469c68ba9a45baf954829f
      
https://github.com/qemu/qemu/commit/ce0d38a97f9f714abe469c68ba9a45baf954829f
  Author: Xiaojuan Yang <yangxiaojuan@loongson.cn>
  Date:   2022-11-03 (Thu, 03 Nov 2022)

  Changed paths:
    M hw/loongarch/acpi-build.c
    M hw/loongarch/virt.c

  Log Message:
  -----------
  hw/loongarch: Add TPM device for LoongArch virt machine

Add TPM device for LoongArch virt machine, including
establish TPM acpi info and add TYPE_TPM_TIS_SYSBUS
to dynamic_sysbus_devices list.

Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20221028014007.2718352-4-yangxiaojuan@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>


  Commit: ad8ba3c65068496f13c84d4c8c303f30b7a4d658
      
https://github.com/qemu/qemu/commit/ad8ba3c65068496f13c84d4c8c303f30b7a4d658
  Author: Song Gao <gaosong@loongson.cn>
  Date:   2022-11-03 (Thu, 03 Nov 2022)

  Changed paths:
    M target/loongarch/cpu.c
    M target/loongarch/cpu.h

  Log Message:
  -----------
  target/loongarch: Add exception subcode

We need subcodes to distinguish the same excode cs->exception_indexs,
such as EXCCODE_ADEF/EXCCODE_ADEM.

Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20221101073210.3934280-1-gaosong@loongson.cn>


  Commit: d31e2b1af7e6db41e6088679babc3893bd69b4b3
      
https://github.com/qemu/qemu/commit/d31e2b1af7e6db41e6088679babc3893bd69b4b3
  Author: Song Gao <gaosong@loongson.cn>
  Date:   2022-11-03 (Thu, 03 Nov 2022)

  Changed paths:
    M target/loongarch/cpu.c
    M target/loongarch/tlb_helper.c

  Log Message:
  -----------
  target/loongarch: Fix raise_mmu_exception() set wrong exception_index

When the address is invalid address, We should set exception_index
according to MMUAccessType, and EXCCODE_ADEF need't update badinstr.
Otherwise, The system enters an infinite loop. e.g:
run test.c on system mode
test.c:
    #include<stdio.h>

    void (*func)(int *);

    int main()
    {
        int i = 8;
        void *ptr = (void *)0x4000000000000000;
        func = ptr;
        func(&i);
        return 0;
    }

Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20221101073210.3934280-2-gaosong@loongson.cn>


  Commit: 5e82102268f5a72b2880f9cb638e9719177a95f9
      
https://github.com/qemu/qemu/commit/5e82102268f5a72b2880f9cb638e9719177a95f9
  Author: Stefan Hajnoczi <stefanha@redhat.com>
  Date:   2022-11-03 (Thu, 03 Nov 2022)

  Changed paths:
    M hw/nvme/ctrl.c
    M hw/nvme/nvme.h

  Log Message:
  -----------
  Merge tag 'nvme-fixes-pull-request' of git://git.infradead.org/qemu-nvme into 
staging

hw/nvme fixes

Two small fixes.

# -----BEGIN PGP SIGNATURE-----
#
# iQEzBAABCgAdFiEEUigzqnXi3OaiR2bATeGvMW1PDekFAmNiKUkACgkQTeGvMW1P
# DenBuAf/fwznY98HVg8zYQ/chLGMCmjAa80buf867usnL5Iuhms1XCkxpETFfMAZ
# HR5gg+52vHZg/FCGbQ3E8d/ZLwDZHboiEuZDPo9aYI4uTj3gs66j9S0y6DUVkn5I
# 7Ad+BYW7/d4++8fZAdaUV67rmo89OvjgSqOs+O094nGAPIEgJnsL7HrOFniKnNqu
# MMWvFlK1bAz/iPKPf2WWVeuAs1cMs+TPsjE+ZHhUEYaZAiB1myKVPIAVyOHx5yoT
# 6VTsNMLvNEi5+4Ucg1TkIwb/dAXrYYEvreo8ri1yuHCVOqw4lU9FfPhmiz5h76Sc
# sI0cMiNL/RW5pk6rnDLkPZyjTKw30A==
# =s2fM
# -----END PGP SIGNATURE-----
# gpg: Signature made Wed 02 Nov 2022 04:24:41 EDT
# gpg:                using RSA key 522833AA75E2DCE6A24766C04DE1AF316D4F0DE9
# gpg: Good signature from "Klaus Jensen <its@irrelevant.dk>" [unknown]
# gpg:                 aka "Klaus Jensen <k.jensen@samsung.com>" [unknown]
# gpg: WARNING: This key is not certified with a trusted signature!
# gpg:          There is no indication that the signature belongs to the owner.
# Primary key fingerprint: DDCA 4D9C 9EF9 31CC 3468  4272 63D5 6FC5 E55D A838
#      Subkey fingerprint: 5228 33AA 75E2 DCE6 A247  66C0 4DE1 AF31 6D4F 0DE9

* tag 'nvme-fixes-pull-request' of git://git.infradead.org/qemu-nvme:
  hw/nvme: Abort copy command when format is one while pif
  hw/nvme: reenable cqe batching

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>


  Commit: 7f5acfcb662d32a736d0db41211cc7f340193bdd
      
https://github.com/qemu/qemu/commit/7f5acfcb662d32a736d0db41211cc7f340193bdd
  Author: Stefan Hajnoczi <stefanha@redhat.com>
  Date:   2022-11-03 (Thu, 03 Nov 2022)

  Changed paths:
    M hw/i386/x86.c
    A include/qemu/async-teardown.h
    M meson.build
    M os-posix.c
    M qemu-options.hx
    M target/i386/kvm/kvm-stub.c
    M target/i386/kvm/kvm.c
    M target/i386/kvm/kvm_i386.h
    M target/i386/tcg/sysemu/excp_helper.c
    M target/i386/tcg/translate.c
    A util/async-teardown.c
    M util/log.c
    M util/meson.build

  Log Message:
  -----------
  Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging

* bug fixes
* reduced memory footprint for IPI virtualization on Intel processors
* asynchronous teardown support (Linux only)

# -----BEGIN PGP SIGNATURE-----
#
# iQFIBAABCAAyFiEE8TM4V0tmI4mGbHaCv/vSX3jHroMFAmNiVykUHHBib256aW5p
# QHJlZGhhdC5jb20ACgkQv/vSX3jHroN0Swf/YxjphCtFgYYSO14WP+7jAnfRZLhm
# 0xWChWP8rco5I352OBFeFU64Av5XoLGNn6SZLl8lcg86lQ/G0D27jxu6wOcDDHgw
# 0yTDO1gevj51UKsbxoC66OWSZwKTEo398/BHPDcI2W41yOFycSdtrPgspOrFRVvf
# 7M3nNjuNPsQorZeuu8NGr3jakqbt99ZDXcyDEWbrEAcmy2JBRMbGgT0Kdnc6aZfW
# CvL+1ljxzldNwGeNBbQW2QgODbfHx5cFZcy4Daze35l5Ra7K/FrgAzr6o/HXptya
# 9fEs5LJQ1JWI6JtpaWwFy7fcIIOsJ0YW/hWWQZSDt9JdAJFE5/+vF+Kz5Q==
# =CgrO
# -----END PGP SIGNATURE-----
# gpg: Signature made Wed 02 Nov 2022 07:40:25 EDT
# gpg:                using RSA key F13338574B662389866C7682BFFBD25F78C7AE83
# gpg:                issuer "pbonzini@redhat.com"
# gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>" [full]
# gpg:                 aka "Paolo Bonzini <pbonzini@redhat.com>" [full]
# Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4  E2F7 7E15 100C CD36 69B1
#      Subkey fingerprint: F133 3857 4B66 2389 866C  7682 BFFB D25F 78C7 AE83

* tag 'for-upstream' of https://gitlab.com/bonzini/qemu:
  target/i386: Fix test for paging enabled
  util/log: Close per-thread log file on thread termination
  target/i386: Set maximum APIC ID to KVM prior to vCPU creation
  os-posix: asynchronous teardown for shutdown on Linux
  target/i386: Fix calculation of LOCK NEG eflags

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>


  Commit: ece5f8374d0416a339f0c0a9399faa2c42d4ad6f
      
https://github.com/qemu/qemu/commit/ece5f8374d0416a339f0c0a9399faa2c42d4ad6f
  Author: Stefan Hajnoczi <stefanha@redhat.com>
  Date:   2022-11-03 (Thu, 03 Nov 2022)

  Changed paths:
    M linux-user/hppa/cpu_loop.c
    M linux-user/strace.list
    M linux-user/syscall.c

  Log Message:
  -----------
  Merge tag 'linux-user-for-7.2-pull-request' of 
https://gitlab.com/laurent_vivier/qemu into staging

linux-user pull request 20221103

Fix recvmsg
Fix hppa exception handler
Add close_range
Add strace for timer_settime64

# -----BEGIN PGP SIGNATURE-----
#
# iQJGBAABCAAwFiEEzS913cjjpNwuT1Fz8ww4vT8vvjwFAmNjgI0SHGxhdXJlbnRA
# dml2aWVyLmV1AAoJEPMMOL0/L7485noP/jx8c5ytN+K5JbTLIdGYAbTJLm82Pnl5
# PP6mzaiII+gqBsmsTmmZhJ92xWjyX9kZmwCY7jD5XYXHQ2jFg3fU96ktYum7q8BU
# XaPP4Cd6TfDE4q8H34PD/4byTGEkHP6o7EhAkIVAKsRQcQgZnsc3tvZetXxncltZ
# UypPqAjvTy3s3uJFRmI4z9sYiAvjEflgk8doci/i5dOSgEBUmcCw/tFUx2GFrHiR
# TdX8BRGaGEt+TPyKAo6sVBgTs1KiU4RzOqrPoxZO8aEClwPCRTLqNw/IONtHmx9f
# EevuwDS7ZdoMdXi7YANDVy17JkmPBU3g8DFSWYGYObRpdmexmD66aW4kCeUYL0BC
# y5aqxRWEi/7Kjvb6QlO3sJnAMfXaOQcCNn1++Tk1V8/O7f3k/xakya700fiMRIaQ
# vyrW+g0TrCWEOgWl1Nyd0yDayX0wCM8CV/5SoO21QHjjzG+zmPxvroDpfVHcwbAl
# V+wzVBj6AE5QBZKXUSE4b5DalcASF3pbUTorB5Xv/HDdsM1cRGZLBo7KECXqLKaa
# L5VLgDdrZdSJz60f4P7Ldyhv0grb3C38JNqYg8fi8gWdj6dEc5M4coX84lA3JE7v
# +Vf3Ys+lGC+DCSp2Qsh5FJvgsRn740ROToLJcXu3jxYPlquEsZpS1hpC+WOTRXOU
# l2tnZIV9/SyH
# =UZJY
# -----END PGP SIGNATURE-----
# gpg: Signature made Thu 03 Nov 2022 04:49:17 EDT
# gpg:                using RSA key CD2F75DDC8E3A4DC2E4F5173F30C38BD3F2FBE3C
# gpg:                issuer "laurent@vivier.eu"
# gpg: Good signature from "Laurent Vivier <lvivier@redhat.com>" [full]
# gpg:                 aka "Laurent Vivier <laurent@vivier.eu>" [full]
# gpg:                 aka "Laurent Vivier (Red Hat) <lvivier@redhat.com>" 
[full]
# Primary key fingerprint: CD2F 75DD C8E3 A4DC 2E4F  5173 F30C 38BD 3F2F BE3C

* tag 'linux-user-for-7.2-pull-request' of 
https://gitlab.com/laurent_vivier/qemu:
  linux-user: always translate cmsg when recvmsg
  linux-user: Add strace output for timer_settime64() syscall
  linux-user: Add close_range() syscall
  linux-user/hppa: Detect glibc ABORT_INSTRUCTION and EXCP_BREAK handler

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>


  Commit: 64187949b76702a47b6cd9f20e737189ad4396cf
      
https://github.com/qemu/qemu/commit/64187949b76702a47b6cd9f20e737189ad4396cf
  Author: Stefan Hajnoczi <stefanha@redhat.com>
  Date:   2022-11-03 (Thu, 03 Nov 2022)

  Changed paths:
    M hw/intc/loongarch_extioi.c
    M hw/intc/trace-events
    M hw/loongarch/acpi-build.c
    M hw/loongarch/virt.c
    M include/hw/loongarch/virt.h
    M include/hw/pci-host/ls7a.h
    M target/loongarch/cpu.c
    M target/loongarch/cpu.h
    M target/loongarch/iocsr_helper.c
    M target/loongarch/tlb_helper.c

  Log Message:
  -----------
  Merge tag 'pull-loongarch-20221103' of https://gitlab.com/gaosong/qemu into 
staging

pull-loongarch-20221103

# -----BEGIN PGP SIGNATURE-----
#
# iLMEAAEIAB0WIQS4/x2g0v3LLaCcbCxAov/yOSY+3wUCY2OiRwAKCRBAov/yOSY+
# 3/NuA/9wCor5Z4wqkRsQXXC3Od3catqpowCW/0v4ZgEtYVv1gHduxXkN/z3UTv4B
# cKJh/ZeyN7dCAogsLQR9dllGsM3gOzJmR7aDks6120K5A3RVFhspCrifgpXlevfS
# B4/i07UwDmxYc2ToCb2Gpw6YHZFT/9+gK3e+N691LOm7PpqxBQ==
# =EhwX
# -----END PGP SIGNATURE-----
# gpg: Signature made Thu 03 Nov 2022 07:13:11 EDT
# gpg:                using RSA key B8FF1DA0D2FDCB2DA09C6C2C40A2FFF239263EDF
# gpg: Good signature from "Song Gao <m17746591750@163.com>" [unknown]
# gpg: WARNING: This key is not certified with a trusted signature!
# gpg:          There is no indication that the signature belongs to the owner.
# Primary key fingerprint: B8FF 1DA0 D2FD CB2D A09C  6C2C 40A2 FFF2 3926 3EDF

* tag 'pull-loongarch-20221103' of https://gitlab.com/gaosong/qemu:
  target/loongarch: Fix raise_mmu_exception() set wrong exception_index
  target/loongarch: Add exception subcode
  hw/loongarch: Add TPM device for LoongArch virt machine
  hw/loongarch: Improve fdt for LoongArch virt machine
  hw/loongarch: Load FDT table into dram memory space
  hw/intc: Fix LoongArch extioi coreisr accessing
  hw/intc: Convert the memops to with_attrs in LoongArch extioi

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>


Compare: https://github.com/qemu/qemu/compare/645ec8515c44...64187949b767



reply via email to

[Prev in Thread] Current Thread [Next in Thread]