|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] libxc: Add xc_domain_hvm_get_mtrr_type() call
This is where it gets tricky:
static void get_mtrr_range(uint64_t base_msr, uint64_t mask_msr,
uint64_t *base, uint64_t *end)
{
[...]
phys_addr = 36;
if ( cpuid_eax(0x80000000) >= 0x80000008 )
phys_addr = (uint8_t)cpuid_eax(0x80000008);
size_or_mask = ~((1 << (phys_addr - PAGE_SHIFT)) - 1);
[...]
}
specifically, in the cpuid_eax() call, which doesn't make much sense in
dom0 userspace.
I did manage to take 'enabled' into account with what appears to be success, but if I've read the situation correctly, there's not much to do about 'overlap', unless we save it in hvm_save_mtrr_msr() like it's done with 'enabled'. What do you think? Thanks, Razvan Cojocaru _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |