* [PATCH] expose async pf through our standard mechanism
@ 2011-03-23 16:40 Glauber Costa
2011-03-24 10:41 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Glauber Costa @ 2011-03-23 16:40 UTC (permalink / raw)
To: kvm; +Cc: linux-kernel, Gleb Natapov, Avi Kivity
As Avi recently mentioned, the new standard mechanism for exposing features
is KVM_GET_SUPPORTED_CPUID, not spanning CAPs. For some reason async pf missed that.
So expose async_pf here.
Signed-off-by: Glauber Costa <glommer@redhat.com>
CC: Gleb Natapov <gleb@redhat.com>
CC: Avi Kivity <avi@redhat.com>
---
arch/x86/kvm/x86.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index f1e4025..e6a1cd8 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -2418,6 +2418,7 @@ static void do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,
entry->eax = (1 << KVM_FEATURE_CLOCKSOURCE) |
(1 << KVM_FEATURE_NOP_IO_DELAY) |
(1 << KVM_FEATURE_CLOCKSOURCE2) |
+ (1 << KVM_FEATURE_ASYNC_PF) |
(1 << KVM_FEATURE_CLOCKSOURCE_STABLE_BIT);
entry->ebx = 0;
entry->ecx = 0;
--
1.7.2.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] expose async pf through our standard mechanism
2011-03-23 16:40 [PATCH] expose async pf through our standard mechanism Glauber Costa
@ 2011-03-24 10:41 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2011-03-24 10:41 UTC (permalink / raw)
To: Glauber Costa; +Cc: kvm, linux-kernel, Gleb Natapov
On 03/23/2011 06:40 PM, Glauber Costa wrote:
> As Avi recently mentioned, the new standard mechanism for exposing features
> is KVM_GET_SUPPORTED_CPUID, not spanning CAPs. For some reason async pf missed that.
>
> So expose async_pf here.
>
Applied, thanks.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-24 10:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-23 16:40 [PATCH] expose async pf through our standard mechanism Glauber Costa
2011-03-24 10:41 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox