X86 fixes
The following changes since commit a648c137383d84bc4f95696e5293978d9541a26e:
Merge remote-tracking branch 'remotes/kraxel/tags/pull-ui-20160309-1' into staging (2016-03-10 02:51:14 +0000)
are available in the git repository at:
git://github.com/ehabkost/qemu.git tags/x86-pull-request
for you to fetch changes up to b04c3b6ad8b3e802fe7ad7a3ff5a9ab980d22578:
kvm: Remove x2apic feature from CPU model when kernel_irqchip is off (2016-03-11 15:43:48 -0300)
----------------------------------------------------------------
X86 fixes
----------------------------------------------------------------
Denis V. Lunev (1):
hyperv: cpu hotplug fix with HyperV enabled
Lan Tianyu (1):
kvm: Remove x2apic feature from CPU model when kernel_irqchip is off
roms/SLOF | 2 +- roms/openbios | 2 +- target-i386/cpu.c | 4 ++++ target-i386/kvm.c | 1 + 4 files changed, 7 insertions(+), 2 deletions(-)
Signature · 1 line
2.1.0
[Qemu-devel] [PULL 1/2] hyperv: cpu hotplug fix with HyperV enabled
From: "Denis V. Lunev" <[email protected]>
With Hyper-V enabled CPU hotplug stops working. The CPU appears in device manager on Windows but does not appear in peformance monitor and control panel.
The root of the problem is the following. Windows checks HV_X64_CPU_DYNAMIC_PARTITIONING_AVAILABLE bit in CPUID. The presence of this bit is enough to cure the situation.
The bit should be set when CPU hotplug is allowed for HyperV VM. The check that hot_add_cpu callback is defined is enough from the protocol point of view. Though this callback is defined almost always thus there is no need to export that knowledge in the other way.
--- roms/SLOF | 2 +- roms/openbios | 2 +- target-i386/kvm.c | 1 + 3 files changed, 3 insertions(+), 2 deletions(-)
roms/SLOF +1 -1
@@ -1 +1 @@ -Subproject commit e3d05727a074619fc12d0a67f05cf2c42c875cce +Subproject commit b4c93802a5b2c72f096649c497ec9ff5708e4456
roms/openbios +1 -1
@@ -1 +1 @@ -Subproject commit 0dbda5d935f95391d16431cd3c079fbf53d668df +Subproject commit bd95e4c193905d5ed867e96f1a720ce4cb53b59f
target-i386/kvm.c +1 -0
@@ -639,6 +639,7 @@ int kvm_arch_init_vcpu(CPUState *cs)if (cpu->hyperv_crash && has_msr_hv_crash) { c->edx |=HV_X64_GUEST_CRASH_MSR_AVAILABLE ; } + c->edx |=HV_X64_CPU_DYNAMIC_PARTITIONING_AVAILABLE ;if (cpu->hyperv_reset && has_msr_hv_reset) { c->eax |=HV_X64_MSR_RESET_AVAILABLE ; }
Signature · 1 line
2.1.0
[Qemu-devel] [PULL 2/2] kvm: Remove x2apic feature from CPU model when kernel_irqchip is off
In reply to Eduardo HabkostFrom: Lan Tianyu <[email protected]>
x2apic feature is in the kvm_default_props and automatically added to all CPU models when KVM is enabled. But userspace devices don't support x2apic which can't be enabled without the in-kernel irqchip. It will trigger warning of "host doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21]" when kernel_irqchip is off. This patch is to fix it via removing x2apic feature when kernel_irqchip is off.
--- target-i386/cpu.c | 4 ++++ 1 file changed, 4 insertions(+)
target-i386/cpu.c +4 -0
@@ -2132,6 +2132,10 @@ static void x86_cpu_load_def(X86CPU *cpu, X86CPUDefinition *def, Error **errp)/* Special cases not set in the X86CPUDefinition structs: */ if (kvm_enabled ()) { +if (!kvm_irqchip_in_kernel ()) { +x86_cpu_change_kvm_default ("x2apic" ,"off" ); + } +x86_cpu_apply_props (cpu, kvm_default_props); }
Signature · 1 line
2.1.0
Quoted 20 lines · Eduardo Habkost
The following changes since commit
a648c137383d84bc4f95696e5293978d9541a26e:Merge remote-tracking branch 'remotes/kraxel/tags/pull-ui-20160309-1' into staging (2016-03-10 02:51:14 +0000)
are available in the git repository at:
git://github.com/ehabkost/qemu.gittags/x86-pull-requestfor you to fetch changes up to
b04c3b6ad8b3e802fe7ad7a3ff5a9ab980d22578:kvm: Remove x2apic feature from CPU model when
kernel_irqchipis off (2016-03-11 15:43:48 -0300)----------------------------------------------------------------
X86 fixes----------------------------------------------------------------
Denis V. Lunev (1):
hyperv: cpu hotplug fix with HyperV enabled
Quoted 8 lines
Lan Tianyu (1):
kvm: Remove x2apic feature from CPU model whenkernel_irqchipis offroms/SLOF | 2 +- roms/openbios | 2 +- target-i386/cpu.c | 4 ++++ target-i386/kvm.c | 1 + 4 files changed, 7 insertions(+), 2 deletions(-)
This pull contains submodule updates not mentioned in the commit messages -- are they intentional ?
thanks
-- PMM
Quoted 24 lines · Peter Maydell
Quoted 23 lines · Eduardo Habkost
The following changes since commit
a648c137383d84bc4f95696e5293978d9541a26e:Merge remote-tracking branch 'remotes/kraxel/tags/pull-ui-20160309-1' into staging (2016-03-10 02:51:14 +0000)
are available in the git repository at:
git://github.com/ehabkost/qemu.gittags/x86-pull-requestfor you to fetch changes up to
b04c3b6ad8b3e802fe7ad7a3ff5a9ab980d22578:kvm: Remove x2apic feature from CPU model when
kernel_irqchipis off (2016-03-11 15:43:48 -0300)----------------------------------------------------------------
X86 fixes----------------------------------------------------------------
Denis V. Lunev (1):
hyperv: cpu hotplug fix with HyperV enabledLan Tianyu (1):
kvm: Remove x2apic feature from CPU model whenkernel_irqchipis off
Quoted 8 lines
Quoted 5 lines
roms/SLOF | 2 +- roms/openbios | 2 +- target-i386/cpu.c | 4 ++++ target-i386/kvm.c | 1 + 4 files changed, 7 insertions(+), 2 deletions(-)This pull contains submodule updates not mentioned in the commit messages -- are they intentional ?
They are not, sorry again. I am submitting a new pull request.
I am adding a hook to my repository so it never happen again.
Signature · 1 line
Eduardo