aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2008-02-22 12:21:36 -0500
committerAvi Kivity <avi@qumranet.com>2008-04-27 05:00:25 -0400
commit0cf1bfd2737f41e59f974a61eab11af206d2042a (patch)
tree4edd67efa000f4cb94ef834daa21ac07c2016989 /include/linux
parenta28e4f5a621289fe0d9c8a461b0c256f9e17f3bc (diff)
x86: KVM guest: add basic paravirt support
Add basic KVM paravirt support. Avoid vm-exits on IO delays. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/kvm_para.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/kvm_para.h b/include/linux/kvm_para.h
index 5497aac0d2f8..9c462c91a6b1 100644
--- a/include/linux/kvm_para.h
+++ b/include/linux/kvm_para.h
@@ -20,6 +20,12 @@
20#include <asm/kvm_para.h> 20#include <asm/kvm_para.h>
21 21
22#ifdef __KERNEL__ 22#ifdef __KERNEL__
23#ifdef CONFIG_KVM_GUEST
24void __init kvm_guest_init(void);
25#else
26#define kvm_guest_init() do { } while (0)
27#endif
28
23static inline int kvm_para_has_feature(unsigned int feature) 29static inline int kvm_para_has_feature(unsigned int feature)
24{ 30{
25 if (kvm_arch_para_features() & (1UL << feature)) 31 if (kvm_arch_para_features() & (1UL << feature))