vmmcp: allow a fake write to CSTAR
authorRonald G. Minnich <rminnich@gmail.com>
Wed, 8 Jul 2015 15:15:41 +0000 (08:15 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 2 Nov 2015 23:24:25 +0000 (18:24 -0500)
We don't expect that a guest will ever really use this.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/arch/x86/vmm/intel/vmx.c

index e8ace3d..47ce751 100644 (file)
@@ -1075,6 +1075,7 @@ int emsr_fakewrite(struct vmx_vcpu *vcpu, struct emmsr *, uint32_t, uint32_t);
 struct emmsr emmsrs[] = {
        {MSR_IA32_MISC_ENABLE, emsr_misc_enable},
        {MSR_IA32_UCODE_REV, emsr_fakewrite},
+       {MSR_CSTAR, emsr_fakewrite},
 };
 
 #define set_low32(hi,lo) (((hi) & 0xffffffff00000000ULL ) | (lo))