Re: [PATCH] KVM/nVMX: Do not validate that posted_intr_desc_addr is page aligned

2018-10-24 Thread Radim Krčmář
2018-10-24 04:01-0700, Sean Christopherson: > On Sat, Oct 20, 2018 at 11:42:59PM +0200, KarimAllah Ahmed wrote: > > The spec only requires the posted interrupt descriptor address to be > > 64-bytes aligned (i.e. bits[0:5] == 0). Using page_address_valid also > > forces the address to be page

Re: [PATCH] KVM/nVMX: Do not validate that posted_intr_desc_addr is page aligned

2018-10-24 Thread Radim Krčmář
2018-10-24 04:01-0700, Sean Christopherson: > On Sat, Oct 20, 2018 at 11:42:59PM +0200, KarimAllah Ahmed wrote: > > The spec only requires the posted interrupt descriptor address to be > > 64-bytes aligned (i.e. bits[0:5] == 0). Using page_address_valid also > > forces the address to be page

Re: [PATCH] KVM/nVMX: Do not validate that posted_intr_desc_addr is page aligned

2018-10-24 Thread Sean Christopherson
On Sat, Oct 20, 2018 at 11:42:59PM +0200, KarimAllah Ahmed wrote: > The spec only requires the posted interrupt descriptor address to be > 64-bytes aligned (i.e. bits[0:5] == 0). Using page_address_valid also > forces the address to be page aligned. > > Only validate that the address does not

Re: [PATCH] KVM/nVMX: Do not validate that posted_intr_desc_addr is page aligned

2018-10-24 Thread Sean Christopherson
On Sat, Oct 20, 2018 at 11:42:59PM +0200, KarimAllah Ahmed wrote: > The spec only requires the posted interrupt descriptor address to be > 64-bytes aligned (i.e. bits[0:5] == 0). Using page_address_valid also > forces the address to be page aligned. > > Only validate that the address does not

[PATCH] KVM/nVMX: Do not validate that posted_intr_desc_addr is page aligned

2018-10-20 Thread KarimAllah Ahmed
The spec only requires the posted interrupt descriptor address to be 64-bytes aligned (i.e. bits[0:5] == 0). Using page_address_valid also forces the address to be page aligned. Only validate that the address does not cross the maximum physical address without enforcing a page alignment. Cc:

[PATCH] KVM/nVMX: Do not validate that posted_intr_desc_addr is page aligned

2018-10-20 Thread KarimAllah Ahmed
The spec only requires the posted interrupt descriptor address to be 64-bytes aligned (i.e. bits[0:5] == 0). Using page_address_valid also forces the address to be page aligned. Only validate that the address does not cross the maximum physical address without enforcing a page alignment. Cc: