[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [qemu/qemu] 3d2778: typedefs: Forward-declare AccelState
From: |
Peter Maydell |
Subject: |
[Qemu-commits] [qemu/qemu] 3d2778: typedefs: Forward-declare AccelState |
Date: |
Sun, 08 Jan 2023 06:33:06 -0800 |
Branch: refs/heads/staging
Home: https://github.com/qemu/qemu
Commit: 3d277871f39d4de42f56b7b0cef5721e525b2d31
https://github.com/qemu/qemu/commit/3d277871f39d4de42f56b7b0cef5721e525b2d31
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2023-01-06 (Fri, 06 Jan 2023)
Changed paths:
M include/qemu/accel.h
M include/qemu/typedefs.h
Log Message:
-----------
typedefs: Forward-declare AccelState
Forward-declare AccelState in "qemu/typedefs.h" so structures
using a reference of it (like MachineState in "hw/boards.h")
don't have to include "qemu/accel.h".
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Message-Id: <20221130135641.85328-2-philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Commit: cc6ff741123216550997b12cdd991beeed47bd0d
https://github.com/qemu/qemu/commit/cc6ff741123216550997b12cdd991beeed47bd0d
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: 2023-01-06 (Fri, 06 Jan 2023)
Changed paths:
M hw/core/machine.c
M include/hw/boards.h
Log Message:
-----------
hw: Reduce "qemu/accel.h" inclusion
Move "qemu/accel.h" include from the heavily included
"hw/boards.h" to hw/core/machine.c, the single file using
the AccelState definition.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Message-Id: <20221130135641.85328-3-philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Commit: 59bde2137445b63c822720d069d91d38190c6540
https://github.com/qemu/qemu/commit/59bde2137445b63c822720d069d91d38190c6540
Author: Paolo Bonzini <pbonzini@redhat.com>
Date: 2023-01-06 (Fri, 06 Jan 2023)
Changed paths:
M util/log.c
Log Message:
-----------
util/log: do not close and reopen log files when flags are turned off
log_append makes sure that if you turn off the logging (which clears
log_flags and makes need_to_open_file false) the old log is not
overwritten. The usecase is that if you remove or move the file
QEMU will not keep writing to the old file. However, this is
not always the desited behavior, in particular having log_append==1
after changing the file name makes little sense.
When qemu_set_log_internal is called from the logfile monitor
command, filename must be non-NULL and therefore changed_name must
be true. Therefore, the only case where the file is closed and
need_to_open_file == false is indeed when log_flags becomes
zero. In this case, just flush the file and do not bother
closing it, thus faking the same append behavior as previously.
The behavioral change is that changing the logfile twice, for
example log1 -> log2 -> log1, will cause log1 to be overwritten.
This can simply be documented, since it is not a particularly
surprising behavior.
Suggested-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
Message-Id: <20221025092119.236224-1-pbonzini@redhat.com>
[groug: nullify global_file before actually closing the file]
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <20221108140032.1460307-2-groug@kaod.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Commit: 9b063b7ea697d796914b3651d15c3457b7b1135c
https://github.com/qemu/qemu/commit/9b063b7ea697d796914b3651d15c3457b7b1135c
Author: Greg Kurz <groug@kaod.org>
Date: 2023-01-06 (Fri, 06 Jan 2023)
Changed paths:
M util/log.c
Log Message:
-----------
util/log: Always send errors to logfile when daemonized
When QEMU is started with `-daemonize`, all stdio descriptors get
redirected to `/dev/null`. This basically means that anything
printed with error_report() and friends is lost.
Current logging code allows to redirect to a file with `-D` but
this requires to enable some logging item with `-d` as well to
be functional.
Relax the check on the log flags when QEMU is daemonized, so that
other users of stderr can benefit from the redirection, without the
need to enable unwanted debug logs. Previous behaviour is retained
for the non-daemonized case. The logic is unrolled as an `if` for
better readability. The qemu_log_level and log_per_thread globals
reflect the state we want to transition to at this point : use
them instead of the intermediary locals for correctness.
qemu_set_log_internal() is adapted to open a per-thread log file
when '-d tid' is passed. This is done by hijacking qemu_try_lock()
which seems simpler that refactoring the code.
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <20221108140032.1460307-3-groug@kaod.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Commit: 1ea17d228e582b1cfbf6f61e9da5fafef4063be8
https://github.com/qemu/qemu/commit/1ea17d228e582b1cfbf6f61e9da5fafef4063be8
Author: Lubomir Rintel <lkundrak@v3.sk>
Date: 2023-01-06 (Fri, 06 Jan 2023)
Changed paths:
M hw/ide/core.c
M include/hw/ide/internal.h
Log Message:
-----------
ide: Add 8-bit data mode
CompactFlash uses features 0x01 and 0x81 to enable/disable 8-bit data
path. Implement them.
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Message-Id: <20221130120238.706717-1-lkundrak@v3.sk>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Commit: cec79db38df72ce74d0296b831e90547111bc13c
https://github.com/qemu/qemu/commit/cec79db38df72ce74d0296b831e90547111bc13c
Author: Lubomir Rintel <lkundrak@v3.sk>
Date: 2023-01-06 (Fri, 06 Jan 2023)
Changed paths:
M hw/ide/qdev.c
Log Message:
-----------
ide: Add "ide-cf" driver, a CompactFlash card
This allows attaching IDE_CFATA device to an IDE bus. Behaves like a
CompactFlash card in True IDE mode.
Tested with:
qemu-system-i386 \
-device driver=ide-cf,drive=cf,bus=ide.0 \
-drive id=cf,index=0,format=raw,if=none,file=cf.img
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Message-Id: <20221130120319.706885-1-lkundrak@v3.sk>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Commit: c5634e822416e71e00f08f55a521362d8d21264d
https://github.com/qemu/qemu/commit/c5634e822416e71e00f08f55a521362d8d21264d
Author: Paolo Bonzini <pbonzini@redhat.com>
Date: 2023-01-06 (Fri, 06 Jan 2023)
Changed paths:
M configure
Log Message:
-----------
configure: remove useless write_c_skeleton
This is not needed ever since QEMU stopped detecting -liberty; this
happened with the Meson switch but it is quite likely that the
library was not really necessary years before.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Commit: 91cd485a6dcbc8210666d19146fe73b8664f0418
https://github.com/qemu/qemu/commit/91cd485a6dcbc8210666d19146fe73b8664f0418
Author: Paolo Bonzini <pbonzini@redhat.com>
Date: 2023-01-06 (Fri, 06 Jan 2023)
Changed paths:
M configure
Log Message:
-----------
configure: remove dead function
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Commit: f9c77801f4992fae99392ccbb60596dfa1fcf04a
https://github.com/qemu/qemu/commit/f9c77801f4992fae99392ccbb60596dfa1fcf04a
Author: Paolo Bonzini <pbonzini@redhat.com>
Date: 2023-01-06 (Fri, 06 Jan 2023)
Changed paths:
M configure
Log Message:
-----------
configure: cleanup $cpu tests
$cpu is derived from preprocessor defines rather than uname these days,
so do not bother using isainfo on Solaris. Likewise do not recognize
BeOS's uname -m output.
Keep the other, less OS-specific canonicalizations for the benefit
of people using --cpu.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Commit: 954ed68f9934a3e08f904acb93ce168505995e95
https://github.com/qemu/qemu/commit/954ed68f9934a3e08f904acb93ce168505995e95
Author: Paolo Bonzini <pbonzini@redhat.com>
Date: 2023-01-06 (Fri, 06 Jan 2023)
Changed paths:
M configure
Log Message:
-----------
configure: preserve qemu-ga variables
Ensure that qemu-ga variables set at configure time are kept
later when the script is rerun. For preserve_env to work,
the variables need to be empty so move the default values
to config-host.mak generation.
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Commit: 10229ec3b0ff77c4894cefa312c21e65a761dcde
https://github.com/qemu/qemu/commit/10229ec3b0ff77c4894cefa312c21e65a761dcde
Author: Paolo Bonzini <pbonzini@redhat.com>
Date: 2023-01-06 (Fri, 06 Jan 2023)
Changed paths:
M configure
M scripts/ci/org.centos/stream/8/x86_64/configure
Log Message:
-----------
configure: remove backwards-compatibility and obsolete options
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Commit: 2d73fa74728dccde5cc29c4e56b4d781e4ead7c4
https://github.com/qemu/qemu/commit/2d73fa74728dccde5cc29c4e56b4d781e4ead7c4
Author: Paolo Bonzini <pbonzini@redhat.com>
Date: 2023-01-06 (Fri, 06 Jan 2023)
Changed paths:
M meson.build
Log Message:
-----------
meson: tweak hardening options for Windows
meson.build has been enabling ASLR _only_ for debug builds since
commit d2147e04f95f ("configure: move Windows flags detection to meson",
2022-05-07); instead it was supposed to disable it for debug builds.
However, the flag has been enabled for DLLs upstream for roughly 2
years (https://sourceware.org/bugzilla/show_bug.cgi?id=19011), and
also by some distros including Debian for 6 years even
(https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=836365).
Enable it unconditionally; we can fix the reversed logic of commit
d2147e04f95f later if there are any reports, but for now just
enable the hardening.
Also add -Wl,--high-entropy-va, which also controls ASLR.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Commit: 9c9b85d705abdcce0b63f9182d8140dd67bd13fb
https://github.com/qemu/qemu/commit/9c9b85d705abdcce0b63f9182d8140dd67bd13fb
Author: Paolo Bonzini <pbonzini@redhat.com>
Date: 2023-01-06 (Fri, 06 Jan 2023)
Changed paths:
M accel/meson.build
Log Message:
-----------
meson: cleanup dummy-cpus.c rules
Now that qtest is available on all targets including Windows, dummy-cpus.c
is included unconditionally in the build. It also does not need to be
compiled per-target.
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Commit: 7bef93ff064f540e24a36a31263ae3db2d06b3d2
https://github.com/qemu/qemu/commit/7bef93ff064f540e24a36a31263ae3db2d06b3d2
Author: Paolo Bonzini <pbonzini@redhat.com>
Date: 2023-01-06 (Fri, 06 Jan 2023)
Changed paths:
M tests/qapi-schema/meson.build
Log Message:
-----------
tests/qapi-schema: remove Meson workaround
The referenced issue has been fixed since version 0.61, so remove the
workaround.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Commit: ca9b5c2ebf1aca87677a24c208bf3d0345c0b1aa
https://github.com/qemu/qemu/commit/ca9b5c2ebf1aca87677a24c208bf3d0345c0b1aa
Author: Paolo Bonzini <pbonzini@redhat.com>
Date: 2023-01-06 (Fri, 06 Jan 2023)
Changed paths:
M configure
Log Message:
-----------
configure: test all warnings
Some warnings are hardcoded in QEMU_CFLAGS and not tested. There is
no particular reason to single out these five, as many more -W flags are
present on all the supported compilers. For homogeneity when moving
the detection to meson, make them use the same warn_flags infrastructure.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Commit: 6a97f3939240977e66e90862419911666956a76a
https://github.com/qemu/qemu/commit/6a97f3939240977e66e90862419911666956a76a
Author: Paolo Bonzini <pbonzini@redhat.com>
Date: 2023-01-06 (Fri, 06 Jan 2023)
Changed paths:
M meson.build
Log Message:
-----------
meson: support meson 0.64 -Doptimization=plain
In Meson 0.64, the optimization built-in option now accepts the "plain" value,
which will not set any optimization flags. While QEMU does not check the
contents of the option and therefore does not suffer any ill effect
from the new value, it uses get_option to print the optimization flags
in the summary. Clean the code up to remove duplication, and check for
-Doptimization=plain at the same time.
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Commit: e51340243687a2cd7ffcf0d6e2de030bed4b8720
https://github.com/qemu/qemu/commit/e51340243687a2cd7ffcf0d6e2de030bed4b8720
Author: Paolo Bonzini <pbonzini@redhat.com>
Date: 2023-01-06 (Fri, 06 Jan 2023)
Changed paths:
M meson.build
Log Message:
-----------
meson: cleanup compiler detection
Detect all compilers at the beginning of meson.build, and store
the available languages in an array.
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Commit: f32eb0021a85efaca97f69b0e9201737562a8e4f
https://github.com/qemu/qemu/commit/f32eb0021a85efaca97f69b0e9201737562a8e4f
Author: Paolo Bonzini <pbonzini@redhat.com>
Date: 2023-01-06 (Fri, 06 Jan 2023)
Changed paths:
M scripts/symlink-install-tree.py
Log Message:
-----------
meson: accept relative symlinks in "meson introspect --installed" data
When installing shared libraries, as is the case for libvfio-user.so,
Meson will include relative symbolic links in the output of
"meson introspect --installed":
{
"libvfio-user.so": "/usr/local/lib64/libvfio-user.so",
...
}
In the case of scripts/symlink-install-tree.py, this will
be a symbolic link to a symbolic link but, in any case, there is
no issue in creating it.
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Commit: 9d3f8b3247795ae8f482700bbbace04b04421d5b
https://github.com/qemu/qemu/commit/9d3f8b3247795ae8f482700bbbace04b04421d5b
Author: Paolo Bonzini <pbonzini@redhat.com>
Date: 2023-01-06 (Fri, 06 Jan 2023)
Changed paths:
M docs/about/removed-features.rst
Log Message:
-----------
docs: do not talk about past removal as happening in the future
KVM guest support on 32-bit Arm hosts *has* been removed, so rephrase
the sentence describing it.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Commit: eaaaf8abdc9a9f3493f2cb6a751660dff3f9db57
https://github.com/qemu/qemu/commit/eaaaf8abdc9a9f3493f2cb6a751660dff3f9db57
Author: Paolo Bonzini <pbonzini@redhat.com>
Date: 2023-01-06 (Fri, 06 Jan 2023)
Changed paths:
M docs/about/deprecated.rst
M docs/about/removed-features.rst
M hw/i386/amd_iommu.c
M hw/i386/intel_iommu.c
M include/hw/i386/apic_internal.h
M target/i386/cpu-sysemu.c
Log Message:
-----------
KVM: remove support for kernel-irqchip=off
-machine kernel-irqchip=off is broken for many guest OSes; kernel-irqchip=split
is the replacement that works, so remove the deprecated support for the former.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Commit: 8b902e3d2309595567e4957b96e971c4f3ca455e
https://github.com/qemu/qemu/commit/8b902e3d2309595567e4957b96e971c4f3ca455e
Author: Paolo Bonzini <pbonzini@redhat.com>
Date: 2023-01-06 (Fri, 06 Jan 2023)
Changed paths:
M docs/about/deprecated.rst
M docs/about/removed-features.rst
M tests/unit/test-cutils.c
M util/cutils.c
Log Message:
-----------
util: remove support for hex numbers with a scaling suffix
This was deprecated in 6.0 and can now be removed.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Commit: 6f9f630836df355b9ca3f4641e6b7be71f6af076
https://github.com/qemu/qemu/commit/6f9f630836df355b9ca3f4641e6b7be71f6af076
Author: Paolo Bonzini <pbonzini@redhat.com>
Date: 2023-01-06 (Fri, 06 Jan 2023)
Changed paths:
M chardev/char.c
M docs/about/deprecated.rst
M docs/about/removed-features.rst
M docs/qdev-device-use.txt
M qemu-options.hx
Log Message:
-----------
util: remove support -chardev tty and -chardev parport
These were deprecated in 6.0 and can now be removed.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Commit: d45f24fe7525d8a8aaa4ca6d9d214dc41819caa5
https://github.com/qemu/qemu/commit/d45f24fe7525d8a8aaa4ca6d9d214dc41819caa5
Author: Kai Huang <kai.huang@intel.com>
Date: 2023-01-06 (Fri, 06 Jan 2023)
Changed paths:
M target/i386/cpu.c
Log Message:
-----------
target/i386: Add SGX aex-notify and EDECCSSA support
The new SGX Asynchronous Exit (AEX) notification mechanism (AEX-notify)
allows one enclave to receive a notification in the ERESUME after the
enclave exit due to an AEX. EDECCSSA is a new SGX user leaf function
(ENCLU[EDECCSSA]) to facilitate the AEX notification handling.
Whether the hardware supports to create enclave with AEX-notify support
is enumerated via CPUID.(EAX=0x12,ECX=0x1):EAX[10]. The new EDECCSSA
user leaf function is enumerated via CPUID.(EAX=0x12,ECX=0x0):EAX[11].
Add support to allow to expose the new SGX AEX-notify feature and the
new EDECCSSA user leaf function to KVM guest.
Link:
https://lore.kernel.org/lkml/166760360549.4906.809756297092548496.tip-bot2@tip-bot2/
Link:
https://lore.kernel.org/lkml/166760360934.4906.2427175408052308969.tip-bot2@tip-bot2/
Reviewed-by: Yang Zhong <yang.zhong@linux.intel.com>
Signed-off-by: Kai Huang <kai.huang@intel.com>
Message-Id: <20221109024834.172705-1-kai.huang@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Commit: fb418b51b7b43c34873f4b9af3da7031b7452115
https://github.com/qemu/qemu/commit/fb418b51b7b43c34873f4b9af3da7031b7452115
Author: Paolo Bonzini <pbonzini@redhat.com>
Date: 2023-01-06 (Fri, 06 Jan 2023)
Changed paths:
M docs/about/deprecated.rst
M docs/about/removed-features.rst
M hw/i386/sgx.c
M qapi/misc-target.json
Log Message:
-----------
i386: SGX: remove deprecated member of SGXInfo
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Commit: 3d83b78285d6e96636130f7d449fd02e2d4deee0
https://github.com/qemu/qemu/commit/3d83b78285d6e96636130f7d449fd02e2d4deee0
Author: Peter Maydell <peter.maydell@linaro.org>
Date: 2023-01-08 (Sun, 08 Jan 2023)
Changed paths:
M accel/meson.build
M chardev/char.c
M configure
M docs/about/deprecated.rst
M docs/about/removed-features.rst
M docs/qdev-device-use.txt
M hw/core/machine.c
M hw/i386/amd_iommu.c
M hw/i386/intel_iommu.c
M hw/i386/sgx.c
M hw/ide/core.c
M hw/ide/qdev.c
M include/hw/boards.h
M include/hw/i386/apic_internal.h
M include/hw/ide/internal.h
M include/qemu/accel.h
M include/qemu/typedefs.h
M meson.build
M qapi/misc-target.json
M qemu-options.hx
M scripts/ci/org.centos/stream/8/x86_64/configure
M scripts/symlink-install-tree.py
M target/i386/cpu-sysemu.c
M target/i386/cpu.c
M tests/qapi-schema/meson.build
M tests/unit/test-cutils.c
M util/cutils.c
M util/log.c
Log Message:
-----------
Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging
* Atomic memslot updates for KVM (Emanuele, David)
* Always send errors to logfile when daemonized (Greg)
* Add support for IDE CompactFlash card (Lubomir)
* First round of build system cleanups (myself)
* First round of feature removals (myself)
* Reduce "qemu/accel.h" inclusion (Philippe)
# gpg: Signature made Thu 05 Jan 2023 23:51:09 GMT
# 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: (24 commits)
i386: SGX: remove deprecated member of SGXInfo
target/i386: Add SGX aex-notify and EDECCSSA support
util: remove support -chardev tty and -chardev parport
util: remove support for hex numbers with a scaling suffix
KVM: remove support for kernel-irqchip=off
docs: do not talk about past removal as happening in the future
meson: accept relative symlinks in "meson introspect --installed" data
meson: cleanup compiler detection
meson: support meson 0.64 -Doptimization=plain
configure: test all warnings
tests/qapi-schema: remove Meson workaround
meson: cleanup dummy-cpus.c rules
meson: tweak hardening options for Windows
configure: remove backwards-compatibility and obsolete options
configure: preserve qemu-ga variables
configure: cleanup $cpu tests
configure: remove dead function
configure: remove useless write_c_skeleton
ide: Add "ide-cf" driver, a CompactFlash card
ide: Add 8-bit data mode
...
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Compare: https://github.com/qemu/qemu/compare/528d9f33cad5...3d83b78285d6
- [Qemu-commits] [qemu/qemu] 3d2778: typedefs: Forward-declare AccelState,
Peter Maydell <=