isapc: disable kvmvapic
PATCH 1/1 isapc: disable kvmvapic
vapic requires the VAPIC ROM to be mapped into RAM. This is not possible without PAM hardware. This fixes a segmentation fault running with -M isapc.
---
hw/i386/pc_piix.c +5 -0
@@ -743,6 +743,11 @@ static QEMUMachine isapc_machine = { .init = pc_init_isa, .max_cpus = 1, .compat_props = (GlobalProperty []) { + { + .driver ="apic-common" , + .property ="kvmvapic" , + .value ="off" , + }, {/* end of list */ } }, DEFAULT_MACHINE_OPTIONS,
Signature · 1 line
1.8.3.1
Il 13/08/2013 00:02, Paolo Bonzini ha scritto:
Quoted 15 lines
vapic requires the VAPIC ROM to be mapped into RAM. This is not possible without PAM hardware. This fixes a segmentation fault running with -M isapc.
Signed-off-by Paolo Bonzini <[email protected]>---
hw/i386/pc_piix.c +0
-0@@ -743,6 +743,11 @@ static QEMUMachine isapc_machine = { .init = pc_init_isa,
hw/i386/pc_piix.c static QEMUMachine isapc_machine = { · line 753
Quoted 10 lines
hw/i386/pc_piix.c +5
-0.max_cpus = 1, .compat_props = (GlobalProperty []) { + { + .driver ="apic-common" , + .property ="kvmvapic" , + .value ="off" , + }, {/* end of list */ } }, DEFAULT_MACHINE_OPTIONS,
Ping.
Paolo
Am 26.08.2013 14:21, schrieb Paolo Bonzini:
Quoted 20 lines
Il 13/08/2013 00:02, Paolo Bonzini ha scritto:
Quoted 19 lines
vapic requires the VAPIC ROM to be mapped into RAM. This is not possible without PAM hardware. This fixes a segmentation fault running with -M isapc.
Signed-off-by Paolo Bonzini <[email protected]>---
hw/i386/pc_piix.c +3
-0@@ -743,6 +743,11 @@ static QEMUMachine isapc_machine = { .init = pc_init_isa, .max_cpus = 1, .compat_props = (GlobalProperty []) { + { + .driver ="apic-common" , + .property ="kvmvapic" ,
Quoted 8 lines
hw/i386/pc_piix.c static QEMUMachine isapc_machine = { · line 753
Quoted 6 lines
hw/i386/pc_piix.c +2
-0+ .value = "off", + }, {/* end of list */ } }, DEFAULT_MACHINE_OPTIONS,Ping.
I had double-checked that my pending qom-test covers isapc and succeeds with and without your patch, so apparently this is visible at runtime only.
Andreas
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Il 26/08/2013 16:34, Andreas Färber ha scritto:
Quoted 30 lines
Am 26.08.2013 14:21, schrieb Paolo Bonzini:
Quoted 20 lines
Il 13/08/2013 00:02, Paolo Bonzini ha scritto:
Quoted 19 lines
vapic requires the VAPIC ROM to be mapped into RAM. This is not possible without PAM hardware. This fixes a segmentation fault running with -M isapc.
Signed-off-by Paolo Bonzini <[email protected]>---
hw/i386/pc_piix.c +3
-0@@ -743,6 +743,11 @@ static QEMUMachine isapc_machine = { .init = pc_init_isa, .max_cpus = 1, .compat_props = (GlobalProperty []) { + { + .driver ="apic-common" , + .property ="kvmvapic" ,Quoted 8 lines
hw/i386/pc_piix.c static QEMUMachine isapc_machine = { · line 753
Quoted 6 lines
hw/i386/pc_piix.c +2
-0+ .value = "off", + }, {/* end of list */ } }, DEFAULT_MACHINE_OPTIONS,Ping.
Quoted 2 lines
I had double-checked that my pending qom-test covers isapc and succeeds with and without your patch, so apparently this is visible at runtime only.
Yes, it only happens after kvmvapic is actually enabled by the option ROM.
Paolo
Am 26.08.2013 17:01, schrieb Paolo Bonzini:
Quoted 31 lines
Il 26/08/2013 16:34, Andreas Färber ha scritto:
Quoted 30 lines
Am 26.08.2013 14:21, schrieb Paolo Bonzini:
Quoted 28 lines
Il 13/08/2013 00:02, Paolo Bonzini ha scritto:
Quoted 15 lines
vapic requires the VAPIC ROM to be mapped into RAM. This is not possible without PAM hardware. This fixes a segmentation fault running with -M isapc.
Signed-off-by Paolo Bonzini <[email protected]>---
hw/i386/pc_piix.c +0
-0@@ -743,6 +743,11 @@ static QEMUMachine isapc_machine = { .init = pc_init_isa,hw/i386/pc_piix.c static QEMUMachine isapc_machine = { · line 753
Quoted 10 lines
hw/i386/pc_piix.c +5
-0.max_cpus = 1, .compat_props = (GlobalProperty []) { + { + .driver ="apic-common" , + .property ="kvmvapic" , + .value ="off" , + }, {/* end of list */ } }, DEFAULT_MACHINE_OPTIONS,Ping.
Quoted 4 lines
Quoted 2 lines
I had double-checked that my pending qom-test covers isapc and succeeds with and without your patch, so apparently this is visible at runtime only.
Yes, it only happens after kvmvapic is actually enabled by the option ROM.
Maybe Michael can pick it up along with the compat refactorings?
Andreas
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Quoted 32 lines · Andreas Färber
Am 26.08.2013 17:01, schrieb Paolo Bonzini:
Quoted 31 lines
Il 26/08/2013 16:34, Andreas Färber ha scritto:
Quoted 30 lines
Am 26.08.2013 14:21, schrieb Paolo Bonzini:
Quoted 28 lines
Il 13/08/2013 00:02, Paolo Bonzini ha scritto:
Quoted 15 lines
vapic requires the VAPIC ROM to be mapped into RAM. This is not possible without PAM hardware. This fixes a segmentation fault running with -M isapc.
Signed-off-by Paolo Bonzini <[email protected]>---
hw/i386/pc_piix.c +0
-0@@ -743,6 +743,11 @@ static QEMUMachine isapc_machine = { .init = pc_init_isa,hw/i386/pc_piix.c static QEMUMachine isapc_machine = { · line 753
Quoted 10 lines
hw/i386/pc_piix.c +5
-0.max_cpus = 1, .compat_props = (GlobalProperty []) { + { + .driver ="apic-common" , + .property ="kvmvapic" , + .value ="off" , + }, {/* end of list */ } }, DEFAULT_MACHINE_OPTIONS,Ping.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
I had double-checked that my pending qom-test covers isapc and succeeds with and without your patch, so apparently this is visible at runtime only.
Yes, it only happens after kvmvapic is actually enabled by the option ROM.
Maybe Michael can pick it up along with the compat refactorings?
Andreas
Sure, I'll put it on my tree but I already prepared a pull request for today, it will go into the next one.
Quoted 3 lines
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Il 26/08/2013 18:17, Michael S. Tsirkin ha scritto:
Quoted 36 lines · Andreas Färber
Quoted 35 lines
Am 26.08.2013 17:01, schrieb Paolo Bonzini:
Quoted 34 lines
Il 26/08/2013 16:34, Andreas Färber ha scritto:
Quoted 32 lines
Am 26.08.2013 14:21, schrieb Paolo Bonzini:
Quoted 20 lines
Il 13/08/2013 00:02, Paolo Bonzini ha scritto:
Quoted 19 lines
vapic requires the VAPIC ROM to be mapped into RAM. This is not possible without PAM hardware. This fixes a segmentation fault running with -M isapc.
Signed-off-by Paolo Bonzini <[email protected]>---
hw/i386/pc_piix.c +3
-0@@ -743,6 +743,11 @@ static QEMUMachine isapc_machine = { .init = pc_init_isa, .max_cpus = 1, .compat_props = (GlobalProperty []) { + { + .driver ="apic-common" , + .property ="kvmvapic" ,Quoted 8 lines
hw/i386/pc_piix.c static QEMUMachine isapc_machine = { · line 753
Quoted 6 lines
hw/i386/pc_piix.c +2
-0+ .value = "off", + }, {/* end of list */ } }, DEFAULT_MACHINE_OPTIONS,Ping.
I had double-checked that my pending qom-test covers isapc and succeeds with and without your patch, so apparently this is visible at runtime only.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Yes, it only happens after kvmvapic is actually enabled by the option ROM.
Maybe Michael can pick it up along with the compat refactorings?
Andreas
Sure, I'll put it on my tree but I already prepared a pull request for today, it will go into the next one.
Michael, can you post this patch together with the ACPI pull request?
Paolo
Am 04.10.2013 18:47, schrieb Paolo Bonzini:
Quoted 37 lines
Il 26/08/2013 18:17, Michael S. Tsirkin ha scritto:
Quoted 36 lines · Andreas Färber
Quoted 35 lines
Am 26.08.2013 17:01, schrieb Paolo Bonzini:
Quoted 34 lines
Il 26/08/2013 16:34, Andreas Färber ha scritto:
Quoted 32 lines
Am 26.08.2013 14:21, schrieb Paolo Bonzini:
Quoted 20 lines
Il 13/08/2013 00:02, Paolo Bonzini ha scritto:
Quoted 19 lines
vapic requires the VAPIC ROM to be mapped into RAM. This is not possible without PAM hardware. This fixes a segmentation fault running with -M isapc.
Signed-off-by Paolo Bonzini <[email protected]>---
hw/i386/pc_piix.c +3
-0@@ -743,6 +743,11 @@ static QEMUMachine isapc_machine = { .init = pc_init_isa, .max_cpus = 1, .compat_props = (GlobalProperty []) { + { + .driver ="apic-common" , + .property ="kvmvapic" ,Quoted 8 lines
hw/i386/pc_piix.c static QEMUMachine isapc_machine = { · line 753
Quoted 6 lines
hw/i386/pc_piix.c +2
-0+ .value = "off", + }, {/* end of list */ } }, DEFAULT_MACHINE_OPTIONS,Ping.
I had double-checked that my pending qom-test covers isapc and succeeds with and without your patch, so apparently this is visible at runtime only.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Yes, it only happens after kvmvapic is actually enabled by the option ROM.
Maybe Michael can pick it up along with the compat refactorings?
Sure, I'll put it on my tree but I already prepared a pull request for today, it will go into the next one.
Michael, can you post this patch together with the ACPI pull request?
What about the comment wrt s/kvmvapic/vapic/g? Haven't seen any response or v2.
Andreas
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Il 04/10/2013 18:52, Andreas Färber ha scritto:
Quoted 42 lines
Am 04.10.2013 18:47, schrieb Paolo Bonzini:
Quoted 41 lines
Il 26/08/2013 18:17, Michael S. Tsirkin ha scritto:
Quoted 40 lines · Andreas Färber
Quoted 38 lines
Am 26.08.2013 17:01, schrieb Paolo Bonzini:
Quoted 31 lines
Il 26/08/2013 16:34, Andreas Färber ha scritto:
Quoted 30 lines
Am 26.08.2013 14:21, schrieb Paolo Bonzini:
Quoted 28 lines
Il 13/08/2013 00:02, Paolo Bonzini ha scritto:
Quoted 15 lines
vapic requires the VAPIC ROM to be mapped into RAM. This is not possible without PAM hardware. This fixes a segmentation fault running with -M isapc.
Signed-off-by Paolo Bonzini <[email protected]>---
hw/i386/pc_piix.c +0
-0@@ -743,6 +743,11 @@ static QEMUMachine isapc_machine = { .init = pc_init_isa,hw/i386/pc_piix.c static QEMUMachine isapc_machine = { · line 753
Quoted 10 lines
hw/i386/pc_piix.c +5
-0.max_cpus = 1, .compat_props = (GlobalProperty []) { + { + .driver ="apic-common" , + .property ="kvmvapic" , + .value ="off" , + }, {/* end of list */ } }, DEFAULT_MACHINE_OPTIONS,Ping.
Quoted 4 lines
Quoted 2 lines
I had double-checked that my pending qom-test covers isapc and succeeds with and without your patch, so apparently this is visible at runtime only.
Yes, it only happens after kvmvapic is actually enabled by the option ROM.
Maybe Michael can pick it up along with the compat refactorings?
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Sure, I'll put it on my tree but I already prepared a pull request for today, it will go into the next one.
Michael, can you post this patch together with the ACPI pull request?
What about the comment wrt s/kvmvapic/vapic/g? Haven't seen any response or v2.
It needs a v2 indeed... weird...
Paolo
Quoted 15 lines · Paolo Bonzini
vapic requires the VAPIC ROM to be mapped into RAM. This is not possible without PAM hardware. This fixes a segmentation fault running with -M isapc.
Signed-off-by Paolo Bonzini <[email protected]>---
hw/i386/pc_piix.c +0
-0@@ -743,6 +743,11 @@ static QEMUMachine isapc_machine = { .init = pc_init_isa,
hw/i386/pc_piix.c static QEMUMachine isapc_machine = { · line 753
Quoted 10 lines
hw/i386/pc_piix.c +5
-0.max_cpus = 1, .compat_props = (GlobalProperty []) { + { + .driver ="apic-common" , + .property ="kvmvapic" , + .value ="off" , + }, {/* end of list */ } }, DEFAULT_MACHINE_OPTIONS,
There's a Fedora bug about a related invocation crashing:
./x86_64-softmmu/qemu-system-x86_64 -machine accel=kvm -m 128 -vga std -boot d -cpu pentium -machine isapc
https://bugzilla.redhat.com/show_bug.cgi?id=986790
So I tried your patch on git master, but it gives:
qemu-system-x86_64: Property '.kvmvapic' not found
Changing the property name to 'vapic' fixes both issues for me.
Thanks,
Cole
Quoted 34 lines · Cole Robinson
Quoted 15 lines · Paolo Bonzini
vapic requires the VAPIC ROM to be mapped into RAM. This is not possible without PAM hardware. This fixes a segmentation fault running with -M isapc.
Signed-off-by Paolo Bonzini <[email protected]>---
hw/i386/pc_piix.c +0
-0@@ -743,6 +743,11 @@ static QEMUMachine isapc_machine = { .init = pc_init_isa,hw/i386/pc_piix.c static QEMUMachine isapc_machine = { · line 753
Quoted 10 lines
hw/i386/pc_piix.c +5
-0.max_cpus = 1, .compat_props = (GlobalProperty []) { + { + .driver ="apic-common" , + .property ="kvmvapic" , + .value ="off" , + }, {/* end of list */ } }, DEFAULT_MACHINE_OPTIONS,There's a Fedora bug about a related invocation crashing:
./x86_64-softmmu/qemu-system-x86_64 -machine accel=kvm -m 128 -vga std -boot d -cpu pentium -machine isapc
Quoted 9 lines
So I tried your patch on git master, but it gives:
qemu-system-x86_64: Property '.kvmvapic' not found
Changing the property name to 'vapic' fixes both issues for me.
Thanks,
Cole
Ping this patch. I had to make the same change as Cole for Gentoo as well.
Signature · 1 line
Doug Goldstein