On 2014-12-08 04:49, Wincy Van wrote: >>>> +static bool vmx_msr_switch_area_verify(u32 count, u64 addr, int maxphyaddr) >>>> +{ >>>> + if (count == 0) >>>> + return true; >>>> + if ((addr & 0xf) != 0) >> >> Bits 11:0 have to be zero, in fact (page alignment required). > > > Why? According to SDM(24.8.2), "If the VM-entry MSR-load count is not zero, > the address must be 16-byte aligned." True, sorry, confused with the MSR usage bitmap. > > I think the macro IS_ALIGNED would be better. Yes. Jan
Attachment:
signature.asc
Description: OpenPGP digital signature