target-i386: kernel_irqchip=off fix for KVM
The following changes since commit 1dc8a6695c731abb7461c637b2512c3670d82be4:
char: fix waiting for TLS and telnet connection (2016-08-16 11:50:55 +0100)
are available in the git repository at:
git://github.com/ehabkost/qemu.git tags/x86-pull-request
for you to fetch changes up to 648774779aa6cdf755a296d1a15849ced51072f1:
target-i386: kvm: Report kvm_pv_unhalt as unsupported w/o kernel_irqchip (2016-08-16 08:49:53 -0300)
----------------------------------------------------------------
target-i386: kernel_irqchip=off fix for KVM
----------------------------------------------------------------
Eduardo Habkost (1):
target-i386: kvm: Report kvm_pv_unhalt as unsupported w/o
kernel_irqchip
target-i386/kvm.c | 7 +++++++ 1 file changed, 7 insertions(+)
Signature · 1 line
2.7.4
[Qemu-devel] [PULL 1/1] target-i386: kvm: Report kvm_pv_unhalt as unsupported w/o kernel_irqchip
The kvm_pv_unhalt feature doesn't work if kernel_irqchip is disabled, so we need to report it as unsupported.
--- target-i386/kvm.c | 7 +++++++ 1 file changed, 7 insertions(+)
target-i386/kvm.c +7 -0
@@ -329,6 +329,13 @@ uint32_t kvm_arch_get_supported_cpuid(KVMState *s, uint32_t function,*/ cpuid_1_edx =kvm_arch_get_supported_cpuid (s,1 ,0 ,R_EDX ); ret |= cpuid_1_edx &CPUID_EXT2_AMD_ALIASES ; + }else if (function ==KVM_CPUID_FEATURES && reg ==R_EAX ) { +/* kvm_pv_unhalt is reported by GET_SUPPORTED_CPUID, but it can't +* be enabled without the in-kernel irqchip +*/ +if (!kvm_irqchip_in_kernel ()) { + ret &= ~(1U <<KVM_FEATURE_PV_UNHALT ); + } }/* fallback for older kernels */
Signature · 1 line
2.7.4
Peter Maydell
AppliedQuoted 8 lines · Eduardo Habkost
The following changes since commit
1dc8a6695c731abb7461c637b2512c3670d82be4:char: fix waiting for TLS and telnet connection (2016-08-16 11:50:55 +0100)
are available in the git repository at:
git://github.com/ehabkost/qemu.gittags/x86-pull-request
Quoted 8 lines
for you to fetch changes up to
648774779aa6cdf755a296d1a15849ced51072f1:target-i386: kvm: Report
kvm_pv_unhaltas unsupported w/okernel_irqchip(2016-08-16 08:49:53 -0300)----------------------------------------------------------------
target-i386: kernel_irqchip=off fix for KVM----------------------------------------------------------------
Applied, thanks.
-- PMM