Richard Henderson
8f0bebebd2
linux-user/s390x: Use force_sig_fault
...
Use the new function instead of setting up a target_siginfo_t
and calling queue_signal.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20220107213243.212806-22-richard.henderson@linaro.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2022-01-11 18:40:44 +01:00
Richard Henderson
8521cc21ad
linux-user/riscv: Use force_sig_fault
...
Use the new function instead of setting up a target_siginfo_t
and calling queue_signal. Fix missing PC from EXCP_DEBUG by
merging the case with EXCP_BREAKPOINT.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20220107213243.212806-21-richard.henderson@linaro.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2022-01-11 18:40:44 +01:00
Richard Henderson
d30e60e7b4
linux-user/ppc: Use force_sig_fault
...
Use the new function instead of setting up a target_siginfo_t
and calling queue_signal. Fill in the missing PC for SIGTRAP.
The fault address for POWERPC_EXCP_ISI is nip exactly, not nip - 4.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20220107213243.212806-20-richard.henderson@linaro.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2022-01-11 18:40:44 +01:00
Richard Henderson
b600705669
linux-user/openrisc: Use force_sig_fault
...
Use the new function instead of setting up a target_siginfo_t
and calling queue_signal. Fill in the missing PC for SIGTRAP.
Reviewed-by: Stafford Horne <shorne@gmail.com >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20220107213243.212806-19-richard.henderson@linaro.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2022-01-11 18:40:44 +01:00
Richard Henderson
0a3336f6fd
target/mips: Extract trap code into env->error_code
...
Simplify cpu_loop by doing all of the decode in translate.
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20220107213243.212806-18-richard.henderson@linaro.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2022-01-11 18:40:44 +01:00
Richard Henderson
6f3533dd1b
target/mips: Extract break code into env->error_code
...
Simplify cpu_loop by doing all of the decode in translate.
This fixes a bug in that cpu_loop was not handling the
different layout of the R6 version of break16. This fixes
a bug in that cpu_loop extracted the wrong bits for the
mips16e break16 instruction.
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20220107213243.212806-17-richard.henderson@linaro.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2022-01-11 18:40:44 +01:00
Richard Henderson
73c0aa6a85
linux-user/mips: Use force_sig_fault
...
Use the new function instead of setting up a target_siginfo_t
and calling queue_signal. Fill in the missing PC for SIGTRAP
and SIGFPE; use force_sig (SI_KERNEL) for EXCP_DSPDIS.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20220107213243.212806-16-richard.henderson@linaro.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2022-01-11 18:40:44 +01:00
Richard Henderson
bf19bdb8f3
linux-user/mips: Improve do_break
...
Rename to do_tr_or_bp, as per the kernel function.
Add a 'trap' argument, akin to the kernel's si_code, but clearer.
The return value is always 0, so change the return value to void.
Use force_sig and force_sig_fault.
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20220107213243.212806-15-richard.henderson@linaro.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2022-01-11 18:40:44 +01:00
Richard Henderson
0b25c4a1f6
linux-user/microblaze: Fix SIGFPE si_codes
...
Fix a typo for ESR_EC_DIVZERO, which is integral not floating-point.
Fix the if ladder for decoding floating-point exceptions.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20220107213243.212806-14-richard.henderson@linaro.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2022-01-11 18:40:44 +01:00
Richard Henderson
23ae825ab7
linux-user/microblaze: Use force_sig_fault
...
Use the new function instead of setting up a target_siginfo_t
and calling queue_signal. Fill in the missing PC for SIGTRAP.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20220107213243.212806-13-richard.henderson@linaro.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2022-01-11 18:40:44 +01:00
Richard Henderson
71dc6f7488
linux-user/m68k: Use force_sig_fault
...
Use the new function instead of setting up a target_siginfo_t
and calling queue_signal. Fill in the missing PC for SIGTRAP.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20220107213243.212806-12-richard.henderson@linaro.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2022-01-11 18:40:44 +01:00
Richard Henderson
d08d6d66f6
linux-user/i386: Use force_sig, force_sig_fault
...
Replace the local gen_signal with the generic functions that match
how the kernel raises signals. Fill in the missing PC for SIGTRAP.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20220107213243.212806-11-richard.henderson@linaro.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2022-01-11 18:40:44 +01:00
Richard Henderson
1ade5b2fed
linux-user/i386: Split out maybe_handle_vm86_trap
...
Reduce the number of ifdefs within cpu_loop().
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20220107213243.212806-10-richard.henderson@linaro.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2022-01-11 18:40:44 +01:00
Richard Henderson
0edf34c93e
linux-user/hppa: Set FPE_CONDTRAP for COND
...
This si_code was changed in 75abf64287cab, for linux 4.17.
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20220107213243.212806-9-richard.henderson@linaro.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2022-01-11 18:40:43 +01:00
Richard Henderson
6ac3bf1f55
linux-user: Remove TARGET_NSIGFPE
...
This define is unused, and we have no similar define for
the other signal sub-codes.
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20220107213243.212806-8-richard.henderson@linaro.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2022-01-11 18:40:43 +01:00
Richard Henderson
7337adeac0
linux-user/hppa: Use the proper si_code for PRIV_OPR, PRIV_REG, OVERFLOW
...
These si_codes have been properly set by the kernel since the beginning.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20220107213243.212806-7-richard.henderson@linaro.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2022-01-11 18:40:43 +01:00
Richard Henderson
f64859684a
linux-user/hppa: Use force_sig_fault
...
Use the new function instead of setting up a target_siginfo_t
and calling queue_signal. Fill in the missing PC for SIGTRAP
and missing si_code for SIGBUS.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20220107213243.212806-6-richard.henderson@linaro.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2022-01-11 18:40:43 +01:00
Richard Henderson
32e321861d
linux-user/cris: Use force_sig_fault
...
Use the new function instead of setting up a target_siginfo_t
and calling queue_signal. Fill in the missing PC for SIGTRAP.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20220107213243.212806-5-richard.henderson@linaro.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2022-01-11 18:40:43 +01:00
Richard Henderson
1c165977de
linux-user/alpha: Use force_sig_fault
...
Use the new function instead of setting up a target_siginfo_t
and calling queue_signal.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20220107213243.212806-4-richard.henderson@linaro.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2022-01-11 18:40:43 +01:00
Richard Henderson
d9c5d7cf4d
linux-user/alpha: Set FPE_FLTUNK for gentrap ROPRAND
...
This si_code was changed in 4cc13e4f6d441, for linux 4.17.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20220107213243.212806-3-richard.henderson@linaro.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2022-01-11 18:40:43 +01:00
Richard Henderson
d010b8bd93
linux-user/alpha: Set TRAP_UNK for bugchk and unknown gentrap
...
These si_codes were changed in 535906c684fca, for linux 4.17.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20220107213243.212806-2-richard.henderson@linaro.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2022-01-11 18:40:43 +01:00
Peter Maydell
7bb1272f40
Merge remote-tracking branch 'remotes/jsnow-gitlab/tags/python-pull-request' into staging
...
Python pull request
Fixes for the tests that broke during vacation, plus a simple syntax fix
for a python script.
# gpg: Signature made Mon 10 Jan 2022 23:24:47 GMT
# gpg: using RSA key F9B7ABDBBCACDF95BE76CBD07DEF8106AAFC390E
# gpg: Good signature from "John Snow (John Huston) <jsnow@redhat.com >" [full]
# Primary key fingerprint: FAEB 9711 A12C F475 812F 18F2 88A9 064D 1835 61EB
# Subkey fingerprint: F9B7 ABDB BCAC DF95 BE76 CBD0 7DEF 8106 AAFC 390E
* remotes/jsnow-gitlab/tags/python-pull-request:
simplebench: Fix Python syntax error (reported by LGTM)
python: update type hints for mypy 0.930
Python/aqmp: fix type definitions for mypy 0.920
python/aqmp: use absolute import statement
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2022-01-11 14:20:42 +00:00
Peter Maydell
64c01c7da4
Merge remote-tracking branch 'remotes/philmd/tags/sdmmc-20220108' into staging
...
SD/MMC patches queue
- Add SDHC support for SD card SPI-mode (Frank Chang)
# gpg: Signature made Sat 08 Jan 2022 21:56:02 GMT
# gpg: using RSA key FAABE75E12917221DCFD6BB2E3E32C2CDEADC0DE
# gpg: Good signature from "Philippe Mathieu-Daudé (F4BUG) <f4bug@amsat.org >" [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: FAAB E75E 1291 7221 DCFD 6BB2 E3E3 2C2C DEAD C0DE
* remotes/philmd/tags/sdmmc-20220108:
hw/sd: Add SDHC support for SD card SPI-mode
hw/sd/sdcard: Rename Write Protect Group variables
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2022-01-11 11:39:31 +00:00
Peter Maydell
bf99e0ec9a
Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging
...
virtio: revert config interrupt changes
Lots of fallout from config interrupt changes. Author wants to rework
the patches. Let's revert quickly so others don't suffer meanwhile.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
# gpg: Signature made Mon 10 Jan 2022 21:03:44 GMT
# gpg: using RSA key 5D09FD0871C8F85B94CA8A0D281F0DB8D28D5469
# gpg: issuer "mst@redhat.com "
# gpg: Good signature from "Michael S. Tsirkin <mst@kernel.org >" [full]
# gpg: aka "Michael S. Tsirkin <mst@redhat.com >" [full]
# Primary key fingerprint: 0270 606B 6F3C DF3D 0B17 0970 C350 3912 AFBE 8E67
# Subkey fingerprint: 5D09 FD08 71C8 F85B 94CA 8A0D 281F 0DB8 D28D 5469
* remotes/mst/tags/for_upstream:
Revert "virtio: introduce macro IRTIO_CONFIG_IRQ_IDX"
Revert "virtio-pci: decouple notifier from interrupt process"
Revert "virtio-pci: decouple the single vector from the interrupt process"
Revert "vhost: introduce new VhostOps vhost_set_config_call"
Revert "vhost-vdpa: add support for config interrupt"
Revert "virtio: add support for configure interrupt"
Revert "vhost: add support for configure interrupt"
Revert "virtio-net: add support for configure interrupt"
Revert "virtio-mmio: add support for configure interrupt"
Revert "virtio-pci: add support for configure interrupt"
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2022-01-11 10:12:29 +00:00
Stefan Weil
9ebfc5a583
simplebench: Fix Python syntax error (reported by LGTM)
...
Fixes: b2fcb0c575
Signed-off-by: Stefan Weil <sw@weilnetz.de >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: John Snow <jsnow@redhat.com >
Message-id: 20220107153019.504124-1-sw@weilnetz.de
Signed-off-by: John Snow <jsnow@redhat.com >
2022-01-10 18:23:10 -05:00
John Snow
366d33158c
python: update type hints for mypy 0.930
...
Mypy 0.930, released Dec 22, changes the way argparse objects are
considered. Crafting a definition that works under Python 3.6 and an
older mypy alongside newer versions simultaneously is ... difficult,
so... eh. Stub it out with an 'Any' definition to get the CI moving
again.
Oh well.
Signed-off-by: John Snow <jsnow@redhat.com >
Reviewed-by: Beraldo Leal <bleal@redhat.com >
Message-id: 20220110191349.1841027-4-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com >
2022-01-10 18:22:59 -05:00
John Snow
42d73f2894
Python/aqmp: fix type definitions for mypy 0.920
...
0.920 (Released 2021-12-15) is not entirely happy with the
way that I was defining _FutureT:
qemu/aqmp/protocol.py:601: error: Item "object" of the upper bound
"Optional[Future[Any]]" of type variable "_FutureT" has no attribute
"done"
Update it with something a little mechanically simpler that works better
across a wider array of mypy versions.
Signed-off-by: John Snow <jsnow@redhat.com >
Message-id: 20220110191349.1841027-3-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com >
2022-01-10 18:22:44 -05:00
John Snow
f75b20e4f1
python/aqmp: use absolute import statement
...
pylint's dependency astroid appears to have bugs in 2.9.1 and 2.9.2 (Dec
31 and Jan 3) that appear to erroneously expect the qemu namespace to
have an __init__.py file. astroid 2.9.3 (Jan 9) avoids that problem, but
appears to not understand a relative import within a namespace package.
Update the relative import - it was worth changing anyway, because these
packages will eventually be packaged and distributed separately.
Signed-off-by: John Snow <jsnow@redhat.com >
Reviewed-by: Beraldo Leal <bleal@redhat.com >
Message-id: 20220110191349.1841027-2-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com >
2022-01-10 18:22:33 -05:00
Michael S. Tsirkin
a882b57123
Revert "virtio: introduce macro IRTIO_CONFIG_IRQ_IDX"
...
This reverts commit bf1d85c166 .
Fixes: bf1d85c166 ("virtio: introduce macro IRTIO_CONFIG_IRQ_IDX")
Cc: "Cindy Lu" <lulu@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2022-01-10 16:02:54 -05:00
Michael S. Tsirkin
a20fa00ce1
Revert "virtio-pci: decouple notifier from interrupt process"
...
This reverts commit e3480ef81f .
Fixes: e3480ef81f ("virtio-pci: decouple notifier from interrupt process")
Cc: "Cindy Lu" <lulu@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2022-01-10 16:02:36 -05:00
Michael S. Tsirkin
38ce405198
Revert "virtio-pci: decouple the single vector from the interrupt process"
...
This reverts commit 316011b8a7 .
Fixes: 316011b8a7 ("virtio-pci: decouple the single vector from the interrupt process")
Cc: "Cindy Lu" <lulu@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2022-01-10 16:02:16 -05:00
Michael S. Tsirkin
98b34e030e
Revert "vhost: introduce new VhostOps vhost_set_config_call"
...
This reverts commit 8806237234 .
Fixes: 8806237234 ("vhost: introduce new VhostOps vhost_set_config_call")
Cc: "Cindy Lu" <lulu@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2022-01-10 16:02:01 -05:00
Michael S. Tsirkin
73bd56abe1
Revert "vhost-vdpa: add support for config interrupt"
...
This reverts commit 634f7c89fb .
Fixes: 634f7c89fb ("vhost-vdpa: add support for config interrupt")
Cc: "Cindy Lu" <lulu@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2022-01-10 16:01:44 -05:00
Michael S. Tsirkin
81c3ebc32f
Revert "virtio: add support for configure interrupt"
...
This reverts commit 081f864f56 .
Fixes: 081f864f56 ("virtio: add support for configure interrupt")
Cc: "Cindy Lu" <lulu@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2022-01-10 16:01:28 -05:00
Michael S. Tsirkin
a86d1a0a93
Revert "vhost: add support for configure interrupt"
...
This reverts commit f7220a7ce2 .
Fixes: f7220a7ce2 ("vhost: add support for configure interrupt")
Cc: "Cindy Lu" <lulu@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2022-01-10 16:01:11 -05:00
Michael S. Tsirkin
b3ef6664b7
Revert "virtio-net: add support for configure interrupt"
...
This reverts commit 497679d510 .
Fixes: 497679d510 ("virtio-net: add support for configure interrupt")
Cc: "Cindy Lu" <lulu@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2022-01-10 16:00:54 -05:00
Michael S. Tsirkin
99478e5941
Revert "virtio-mmio: add support for configure interrupt"
...
This reverts commit d48185f1a4 .
Fixes: d48185f1a4 ("virtio-mmio: add support for configure interrupt")
Cc: "Cindy Lu" <lulu@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2022-01-10 16:00:38 -05:00
Michael S. Tsirkin
847e9bc974
Revert "virtio-pci: add support for configure interrupt"
...
This reverts commit d5d24d859c .
Fixes: d5d24d859c ("virtio-pci: add support for configure interrupt")
Cc: "Cindy Lu" <lulu@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2022-01-10 16:00:02 -05:00
Peter Maydell
de3f5223fa
Merge remote-tracking branch 'remotes/vivier/tags/m68k-for-7.0-pull-request' into staging
...
M68k pull request 20220109
Add virt compat machine type for 7.0
fix q800 -bios parameter
fix VRAM refresh
fix M68K_FEATURE_UNALIGNED_DATA feature
# gpg: Signature made Sun 09 Jan 2022 11:41:19 GMT
# 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
* remotes/vivier/tags/m68k-for-7.0-pull-request:
target/m68k: don't word align SP in stack frame if M68K_FEATURE_UNALIGNED_DATA feature enabled
macfb: fix VRAM dirty memory region logging
q800: fix segfault with invalid MacROM
hw: m68k: Add virt compat machine type for 7.0
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2022-01-10 14:43:03 +00:00
Kostiantyn Kostiuk
206ce9699f
qga-win: Detect Windows 11 by build number
...
Windows 10 and 11 have the same major and minor versions.
So, the only way to determine the correct version is to
use the build number.
After this commit, the guest agent will return the proper
"version" and "version-id" for Windows 11. The "pretty-name"
is read from the registry and will be incorrect until the
MS updates the registry. We only can create some workaround
and replace 10 to 11.
Signed-off-by: Kostiantyn Kostiuk <konstantin@daynix.com >
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Kostiantyn Kostiuk <kkostiuk@redhat.com >
2022-01-10 13:05:25 +00:00
Kostiantyn Kostiuk
92857cd738
qga-win: Detect OS based on Windows 10 by first build number
...
Windows Server 2016, 2019, 2022 are based on Windows 10 and
have the same major and minor versions. So, the only way to
detect the proper version is to use the build number.
Before this commit, the guest agent use the last build number
for each OS, but it causes problems when new OS releases.
There are few preview versions before release, and we
can't update this list.
After this commit, the guest agent will use the first build
number. For each new preview version or release version,
Microsoft increases the build number, so we can add the number
of the first preview build and this will work until the new
OS release.
Signed-off-by: Kostiantyn Kostiuk <konstantin@daynix.com >
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Kostiantyn Kostiuk <kkostiuk@redhat.com >
2022-01-10 13:05:04 +00:00
Kostiantyn Kostiuk
d919cea07c
gqa-win: get_pci_info: Replace 'while' with 2 calls of the function
...
Microsoft suggests this solution in the documentation:
https://docs.microsoft.com/en-us/windows/win32/api/setupapi/nf-setupapi-setupdigetdeviceinterfacedetaila
Signed-off-by: Kostiantyn Kostiuk <konstantin@daynix.com >
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Kostiantyn Kostiuk <kkostiuk@redhat.com >
2022-01-10 13:04:53 +00:00
Kostiantyn Kostiuk
5f22473ebb
gqa-win: get_pci_info: Add g_autofree for few variables
...
Signed-off-by: Kostiantyn Kostiuk <konstantin@daynix.com >
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Kostiantyn Kostiuk <kkostiuk@redhat.com >
2022-01-10 13:04:47 +00:00
Kostiantyn Kostiuk
7cc354613e
gqa-win: get_pci_info: Split logic to separate functions
...
Signed-off-by: Kostiantyn Kostiuk <konstantin@daynix.com >
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Kostiantyn Kostiuk <kkostiuk@redhat.com >
2022-01-10 13:04:40 +00:00
Kostiantyn Kostiuk
c49ca88b55
gqa-win: get_pci_info: Free parent_dev_info properly
...
In case when the function fails to get parent device data,
the parent_dev_info variable will be initialized, but not freed.
Signed-off-by: Kostiantyn Kostiuk <konstantin@daynix.com >
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Kostiantyn Kostiuk <kkostiuk@redhat.com >
2022-01-10 13:04:34 +00:00
Kostiantyn Kostiuk
e78ca586d6
gqa-win: get_pci_info: Use common 'end' label
...
To prevent memory leaks, always try to free initialized variables.
Signed-off-by: Kostiantyn Kostiuk <konstantin@daynix.com >
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Kostiantyn Kostiuk <kkostiuk@redhat.com >
2022-01-10 13:04:23 +00:00
Kostiantyn Kostiuk
d0b896a749
gqa-win: get_pci_info: Clean dev_info if handle is valid
...
Signed-off-by: Kostiantyn Kostiuk <konstantin@daynix.com >
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Signed-off-by: Kostiantyn Kostiuk <kkostiuk@redhat.com >
2022-01-10 13:03:38 +00:00
Kostiantyn Kostiuk
cced3a7230
MAINTAINERS: Add entry for QEMU Guest Agent Windows components
...
Signed-off-by: Kostiantyn Kostiuk <kkostiuk@redhat.com >
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Michael Roth <michael.roth@amd.com >
2022-01-10 13:02:19 +00:00
Alexey Kardashevskiy
1c127fa8e2
pseries: Update SLOF firmware image
...
The only change is that SLOF is compiled with -mcpu=power5
to make it work on PPC970 too.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru >
2022-01-10 15:31:14 +11:00
Mark Cave-Ayland
31144eb639
target/m68k: don't word align SP in stack frame if M68K_FEATURE_UNALIGNED_DATA feature enabled
...
Commit a9431a03f7 ("target/m68k: add M68K_FEATURE_UNALIGNED_DATA feature") added
a new feature for processors from the 68020 onwards which do not require data
accesses to be word aligned.
Unfortunately the original commit missed an additional case whereby the SP is
still word aligned when setting up an additional format 1 stack frame so add the
necessary M68K_FEATURE_UNALIGNED_DATA feature guard.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk >
Fixes: a9431a03f7 ("target/m68k: add M68K_FEATURE_UNALIGNED_DATA feature")
Reviewed-by: Laurent Vivier <laurent@vivier.eu >
Message-Id: <20220108180453.18680-1-mark.cave-ayland@ilande.co.uk >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2022-01-09 12:05:02 +01:00