[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 2/5] vm_event: Implement ARM SMC events
On Tue, May 3, 2016 at 5:31 AM, Julien Grall <julien.grall@xxxxxxx> wrote: Hi Tamas, While I can split off some parts into separate patches, like getting/setting ARM registers through VM events and the tools patches, the other components are pretty tightly coupled and don't actually make sense to split them. For example, enabling a monitor domctl for an event without the VM event components doesn't make much sense. Vice verse for the vm_event parts without being able to enable them.
Ack.
Ack.
Ack.
Maybe not a define but calling the variable "handled" as we do on x86 would be more descriptive.
For HSR_EC_SMC32 there is already GUEST_BUG_ON(!psr_mode_is_32bit(regs->cpsr)); and for HSR_EC_SMC64 there is GUEST_BUG_ON(psr_mode_is_32bit(regs->cpsr)); before calling do_trap_smc. So are you saying that check is wrong for AArch64 as it is right now in unstable? Also, is there any reason those checks are opposite of each other?
For vm_event it's not necessary to get all registers, rather it's just a handful of selection that may be especially "useful" for introspection. It's also important not to fill up the vm_event monitor ring with huge request/response structs so even on x86 we only have a subset of the registers. As right now there are no applications for aarch64, it's only a guess of what registers would be "useful" and may be adjusted in future versions as we start to have applications using this.
Sure.
Thanks, Tamas _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |