projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70109e7
)
KVM: MTRR: exactly define the size of variable MTRRs
author
Xiao Guangrong
<guangrong.xiao@linux.intel.com>
Mon, 15 Jun 2015 08:55:25 +0000
(16:55 +0800)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Fri, 19 Jun 2015 15:16:27 +0000
(17:16 +0200)
Only KVM_NR_VAR_MTRR variable MTRRs are available in KVM guest
Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
patch
|
blob
|
history
diff --git
a/arch/x86/include/asm/kvm_host.h
b/arch/x86/include/asm/kvm_host.h
index
cbf9f07
..
fe9cbe4
100644
(file)
--- a/
arch/x86/include/asm/kvm_host.h
+++ b/
arch/x86/include/asm/kvm_host.h
@@
-343,7
+343,7
@@
enum {
};
struct kvm_mtrr {
- struct mtrr_var_range var_ranges[
MTRR_MAX_VAR_RANGES
];
+ struct mtrr_var_range var_ranges[
KVM_NR_VAR_MTRR
];
mtrr_type fixed_ranges[KVM_NR_FIXED_MTRR_REGION];
unsigned char enabled;
mtrr_type def_type;