Skip to content

Commit 7cfe052

Browse files
suomilewisbonzini
authored andcommitted
kvm: vmx: Rename NR_AUTOLOAD_MSRS to NR_LOADSTORE_MSRS
Rename NR_AUTOLOAD_MSRS to NR_LOADSTORE_MSRS. This needs to be done due to the addition of the MSR-autostore area that will be added in a future patch. After that the name AUTOLOAD will no longer make sense. Reviewed-by: Jim Mattson <[email protected]> Signed-off-by: Aaron Lewis <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 365d3d5 commit 7cfe052

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

arch/x86/kvm/vmx/vmx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -938,8 +938,8 @@ static void add_atomic_switch_msr(struct vcpu_vmx *vmx, unsigned msr,
938938
if (!entry_only)
939939
j = find_msr(&m->host, msr);
940940

941-
if ((i < 0 && m->guest.nr == NR_AUTOLOAD_MSRS) ||
942-
(j < 0 && m->host.nr == NR_AUTOLOAD_MSRS)) {
941+
if ((i < 0 && m->guest.nr == NR_LOADSTORE_MSRS) ||
942+
(j < 0 && m->host.nr == NR_LOADSTORE_MSRS)) {
943943
printk_once(KERN_WARNING "Not enough msr switch entries. "
944944
"Can't add msr %x\n", msr);
945945
return;

arch/x86/kvm/vmx/vmx.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ extern u32 get_umwait_control_msr(void);
2222

2323
#define X2APIC_MSR(r) (APIC_BASE_MSR + ((r) >> 4))
2424

25-
#define NR_AUTOLOAD_MSRS 8
25+
#define NR_LOADSTORE_MSRS 8
2626

2727
struct vmx_msrs {
2828
unsigned int nr;
29-
struct vmx_msr_entry val[NR_AUTOLOAD_MSRS];
29+
struct vmx_msr_entry val[NR_LOADSTORE_MSRS];
3030
};
3131

3232
struct shared_msr_entry {

0 commit comments

Comments
 (0)