 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] arm/vm_event: get/set registers
 On 28/07/2016 21:48, Tamas K Lengyel wrote: On Thu, Jul 28, 2016 at 2:41 PM, Andrew Cooper <andrew.cooper3@xxxxxxxxxx> wrote:On 28/07/2016 21:36, Tamas K Lengyel wrote:On Thu, Jul 28, 2016 at 2:26 PM, Andrew Cooper <andrew.cooper3@xxxxxxxxxx> wrote:On 28/07/2016 21:05, Tamas K Lengyel wrote:Add support for getting/setting registers through vm_event on ARM. The set of registers can be expanded in the future to include other registers as well if necessary but for now it is limited to TTB/CR/R0/R1, PC and CPSR. Signed-off-by: Tamas K Lengyel <tamas.lengyel@xxxxxxxxxxxx> --- Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx> Cc: Julien Grall <julien.grall@xxxxxxx> Cc: Razvan Cojocaru <rcojocaru@xxxxxxxxxxxxxxx> Cc: Jan Beulich <jbeulich@xxxxxxxx> Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>For the x86 and common bits, Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> However, The TTBR*_EL1 are registers that can be set by the guest without any trap to the hypervisor. So they will not cause Xen to fault even writing to any reserved bit. I agree. At the moment the only register I actually need access through vm_event setting is PC so I'll just leave the other registers out and document it in the vm_event header. I am starting to be really annoyed with this kind of sentence. It is not difficult to get things correct from the beginning. You either set/get them or do not expose them at all. But please avoid to have half of an implementation just because your use case does not need it. Regards, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel 
 
 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |