* [Qemu-devel] [PULL 0/1] target-i386: kernel_irqchip=off fix for KVM
@ 2016-08-16 11:57 Eduardo Habkost
2016-08-16 11:57 ` [Qemu-devel] [PULL 1/1] target-i386: kvm: Report kvm_pv_unhalt as unsupported w/o kernel_irqchip Eduardo Habkost
2016-08-16 12:28 ` [Qemu-devel] [PULL 0/1] target-i386: kernel_irqchip=off fix for KVM Peter Maydell
0 siblings, 2 replies; 3+ messages in thread
From: Eduardo Habkost @ 2016-08-16 11:57 UTC (permalink / raw)
To: Peter Maydell
Cc: Paolo Bonzini, peterx, Richard Henderson, Marcel Apfelbaum,
qemu-devel
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(+)
--
2.7.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] [PULL 1/1] target-i386: kvm: Report kvm_pv_unhalt as unsupported w/o kernel_irqchip
2016-08-16 11:57 [Qemu-devel] [PULL 0/1] target-i386: kernel_irqchip=off fix for KVM Eduardo Habkost
@ 2016-08-16 11:57 ` Eduardo Habkost
2016-08-16 12:28 ` [Qemu-devel] [PULL 0/1] target-i386: kernel_irqchip=off fix for KVM Peter Maydell
1 sibling, 0 replies; 3+ messages in thread
From: Eduardo Habkost @ 2016-08-16 11:57 UTC (permalink / raw)
To: Peter Maydell
Cc: Paolo Bonzini, peterx, Richard Henderson, Marcel Apfelbaum,
qemu-devel
The kvm_pv_unhalt feature doesn't work if kernel_irqchip is
disabled, so we need to report it as unsupported.
Tested-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
target-i386/kvm.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index 0b2016a..d1a25c5 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -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 */
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PULL 0/1] target-i386: kernel_irqchip=off fix for KVM
2016-08-16 11:57 [Qemu-devel] [PULL 0/1] target-i386: kernel_irqchip=off fix for KVM Eduardo Habkost
2016-08-16 11:57 ` [Qemu-devel] [PULL 1/1] target-i386: kvm: Report kvm_pv_unhalt as unsupported w/o kernel_irqchip Eduardo Habkost
@ 2016-08-16 12:28 ` Peter Maydell
1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2016-08-16 12:28 UTC (permalink / raw)
To: Eduardo Habkost
Cc: Paolo Bonzini, Peter Xu, Richard Henderson, Marcel Apfelbaum,
QEMU Developers
On 16 August 2016 at 12:57, Eduardo Habkost <ehabkost@redhat.com> wrote:
> 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
>
> ----------------------------------------------------------------
Applied, thanks.
-- PMM
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-08-16 12:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-16 11:57 [Qemu-devel] [PULL 0/1] target-i386: kernel_irqchip=off fix for KVM Eduardo Habkost
2016-08-16 11:57 ` [Qemu-devel] [PULL 1/1] target-i386: kvm: Report kvm_pv_unhalt as unsupported w/o kernel_irqchip Eduardo Habkost
2016-08-16 12:28 ` [Qemu-devel] [PULL 0/1] target-i386: kernel_irqchip=off fix for KVM Peter Maydell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).