Re: [Xen-devel] [PATCH V9 4/5] xen/mm: Clean up pfec handling in gva_to_gfn

2016-02-03 Thread Tim Deegan
At 22:12 +0800 on 03 Feb (1454537524), Huaitong Han wrote: > From: George Dunlap > > At the moment, the pfec argument to gva_to_gfn has two functions: > > * To inform guest_walk what kind of access is happenind > > * As a value to pass back into the guest in the event of a fault. > > Unfortuna

[Xen-devel] [PATCH V9 4/5] xen/mm: Clean up pfec handling in gva_to_gfn

2016-02-03 Thread Huaitong Han
From: George Dunlap At the moment, the pfec argument to gva_to_gfn has two functions: * To inform guest_walk what kind of access is happenind * As a value to pass back into the guest in the event of a fault. Unfortunately this is not quite treated consistently: the hvm_fetch_* function will "p