On 07/04/2009 12:42 AM, Sehrawat Nipun wrote:
Hi Everyone, I am trying to use the MSR load and store areas in vmx. I did following: 1. Setting vm_entry_msr_load_count: vmcs_write32(VM_ENTRY_MSR_LOAD_COUNT, 1); 2. Setting up vm_entry_msr_load_addr : static struct page *vmx_msr_load; Then in vmx_init() : vmx_msr_load = alloc_page(GFP_KERNEL | __GFP_HIGHMEM);
Don't use highmem for pages you give to vmx -- some implementations only support 32-bit physical addresses.
va=kmap(vmx_msr_load); memset(va, MSR_P6_PERFCTR0, 32); /*Bits 31:0 contain msr's address*/
This doesn't do what you think it does. Look at the resulting memory pattern. Use ordinary assignment instead.
-- error compiling committee.c: too many arguments to function -- 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