mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
* fix use-after-free issue
* fix i386 TLB issue * fix crash with wrong -M confidential-guest-support argument * fix NULL pointer dereference in x86 MCE injection -----BEGIN PGP SIGNATURE----- iQFIBAABCAAyFiEE8TM4V0tmI4mGbHaCv/vSX3jHroMFAmX6uvYUHHBib256aW5p QHJlZGhhdC5jb20ACgkQv/vSX3jHroOBPgf/b9i2aQx42PeBbftlOpDlzV0q/Cqw PnONSOKeE4By0qzhehwYdL0e4E63u8f3yvPKBAoQrikBZS68fo4e3wCOc+CkeVfc lcIsoGLgIaEoKpMUdxN9+jkyjurpplG79b/LFYXVMCOENnomHV0oYeSxfOXL/L8c y4yvZ9C6VQSFnemqp+YyzrRad+oRD2hOuc+1RVp+3rxXprkgyfRJAtLvh73MZcvS CaAd2a8ajm2kmQLVv6FeqEr3fgMqbpr2Yeny3n/+T5TdTI2vEODI1JxH2VR/mzYN uiyWS8urQx5P99ICRSOX43WDU5SaUzVYEka8gELf3I5twDudFHtHjKieLA== =UFlw -----END PGP SIGNATURE----- Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging * fix use-after-free issue * fix i386 TLB issue * fix crash with wrong -M confidential-guest-support argument * fix NULL pointer dereference in x86 MCE injection # -----BEGIN PGP SIGNATURE----- # # iQFIBAABCAAyFiEE8TM4V0tmI4mGbHaCv/vSX3jHroMFAmX6uvYUHHBib256aW5p # QHJlZGhhdC5jb20ACgkQv/vSX3jHroOBPgf/b9i2aQx42PeBbftlOpDlzV0q/Cqw # PnONSOKeE4By0qzhehwYdL0e4E63u8f3yvPKBAoQrikBZS68fo4e3wCOc+CkeVfc # lcIsoGLgIaEoKpMUdxN9+jkyjurpplG79b/LFYXVMCOENnomHV0oYeSxfOXL/L8c # y4yvZ9C6VQSFnemqp+YyzrRad+oRD2hOuc+1RVp+3rxXprkgyfRJAtLvh73MZcvS # CaAd2a8ajm2kmQLVv6FeqEr3fgMqbpr2Yeny3n/+T5TdTI2vEODI1JxH2VR/mzYN # uiyWS8urQx5P99ICRSOX43WDU5SaUzVYEka8gELf3I5twDudFHtHjKieLA== # =UFlw # -----END PGP SIGNATURE----- # gpg: Signature made Wed 20 Mar 2024 10:31:18 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: meson: remove dead dictionary access tests/plugins: fix use-after-free bug target/i386: Revert monitor_puts() in do_inject_x86_mce() vl: do not assert if sev-guest is used together with TCG vl: convert qemu_machine_creation_done() to Error ** target/i386: fix direction of "32-bit MMU" test Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
a1d86c4d70
6 changed files with 16 additions and 13 deletions
19
system/vl.c
19
system/vl.c
|
@ -2653,7 +2653,7 @@ static void qemu_create_cli_devices(void)
|
|||
rom_reset_order_override();
|
||||
}
|
||||
|
||||
static void qemu_machine_creation_done(void)
|
||||
static bool qemu_machine_creation_done(Error **errp)
|
||||
{
|
||||
MachineState *machine = MACHINE(qdev_get_machine());
|
||||
|
||||
|
@ -2676,15 +2676,15 @@ static void qemu_machine_creation_done(void)
|
|||
|
||||
qdev_machine_creation_done();
|
||||
|
||||
if (machine->cgs) {
|
||||
/*
|
||||
* Verify that Confidential Guest Support has actually been initialized
|
||||
*/
|
||||
assert(machine->cgs->ready);
|
||||
if (machine->cgs && !machine->cgs->ready) {
|
||||
error_setg(errp, "accelerator does not support confidential guest %s",
|
||||
object_get_typename(OBJECT(machine->cgs)));
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (foreach_device_config(DEV_GDB, gdbserver_start) < 0) {
|
||||
exit(1);
|
||||
error_setg(errp, "could not start gdbserver");
|
||||
return false;
|
||||
}
|
||||
if (!vga_interface_created && !default_vga &&
|
||||
vga_interface_type != VGA_NONE) {
|
||||
|
@ -2692,6 +2692,7 @@ static void qemu_machine_creation_done(void)
|
|||
"type does not use that option; "
|
||||
"No VGA device has been created");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void qmp_x_exit_preconfig(Error **errp)
|
||||
|
@ -2703,7 +2704,9 @@ void qmp_x_exit_preconfig(Error **errp)
|
|||
|
||||
qemu_init_board();
|
||||
qemu_create_cli_devices();
|
||||
qemu_machine_creation_done();
|
||||
if (!qemu_machine_creation_done(errp)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (loadvm) {
|
||||
RunState state = autostart ? RUN_STATE_RUNNING : runstate_get();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue