Re: [PATCH RFC 4/4] VMX: Expose the LA57 feature to VM

2017-03-09 Thread Paolo Bonzini
On 29/12/2016 10:26, Liang Li wrote: > - if (is_noncanonical_address(la)) > + if (is_noncanonical_address(la, virt_addr_bits(ctxt))) Using virt_addr_bits and get_virt_addr_bits is quite a mouthful. What about using instead a pair of functions like these: bool is_noncano

[PATCH RFC 4/4] VMX: Expose the LA57 feature to VM

2016-12-29 Thread Liang Li
This patch exposes 5 level page table feature to the VM, at the same time, the canonical virtual address checking is extended to support both 48-bits and 57-bits address width, it's the prerequisite to support 5 level paging guest. Signed-off-by: Liang Li Cc: Thomas Gleixner Cc: Ingo Molnar Cc: