[PATCH 2/5] fix missing get_xsave_addr in kernels 3.17-3.18.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>
---
 external-module-compat-comm.h | 2 +-
 external-module-compat.c      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/external-module-compat-comm.h b/external-module-compat-comm.h
index 66cfde2..d683c30 100644
--- a/external-module-compat-comm.h
+++ b/external-module-compat-comm.h
@@ -1449,7 +1449,7 @@ static inline void pci_set_dev_assigned(struct pci_dev *pdev)
         })
 #endif
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,18,3)
 void *get_xsave_addr(struct xsave_struct *xsave, int feature);
 #endif
 
diff --git a/external-module-compat.c b/external-module-compat.c
index 068ab44..347d20e 100644
--- a/external-module-compat.c
+++ b/external-module-compat.c
@@ -363,7 +363,7 @@ u64 kvm_get_boot_base_ns(struct timekeeper *tk)
 #endif
 #endif
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,18,3)
 void *get_xsave_addr(struct xsave_struct *xsave, int feature)
 {
 	int index = fls64(feature) - 1;
-- 
1.8.3.1


--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux