kvm: fix external module on mtrr_var_range
PATCH 1/1 kvm: fix external module on mtrr_var_range
Signed-off-by Sheng Yang <[email protected]>
--- kernel/x86/external-module-compat.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
kernel/x86/external-module-compat.h +2 -2
@@ -335,6 +335,8 @@ struct kvm_desc_ptr {#define FEATURE_CONTROL_VMXON_ENABLED (1<<2)#endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29) + struct mtrr_var_range { u32 base_lo; u32 base_hi;
@@ -342,8 +344,6 @@ struct mtrr_var_range {u32 mask_hi; }; -#if LINUX_VERSION_CODE <KERNEL_VERSION (2 ,6 ,29 ) -/* In the Intel processor's MTRR interface, the MTRR type is always held in an 8 bit field: */ typedef u8 mtrr_type ;
Signature · 1 line
1.5.4.5
Avi Kivity
AppliedQuoted 1 line · Sheng Yang
Signed-off-by Sheng Yang <[email protected]
Applied, thanks.
Signature · 1 line
error compiling committee.c: too many arguments to function