|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v3 4/9] arm/vm_event: get/set registers
Hi Tamas, On 16/05/16 16:37, Tamas K Lengyel wrote: On May 16, 2016 04:14, "Julien Grall" <julien.grall@xxxxxxx <mailto:julien.grall@xxxxxxx>> wrote: > On 04/05/16 15:51, Tamas K Lengyel wrote: >> >> diff --git a/xen/include/asm-arm/vm_event.h b/xen/include/asm-arm/vm_event.h >> index a3fc4ce..814d0da 100644 >> --- a/xen/include/asm-arm/vm_event.h >> +++ b/xen/include/asm-arm/vm_event.h >> @@ -48,15 +48,10 @@ void vm_event_register_write_resume(struct vcpu *v, vm_event_response_t *rsp) >> /* Not supported on ARM. */ >> } >> >> -static inline >> -void vm_event_set_registers(struct vcpu *v, vm_event_response_t *rsp) >> -{ >> - /* Not supported on ARM. */ >> -} >> +void vm_event_set_registers(struct vcpu *v, vm_event_response_t *rsp); >> >> -static inline void vm_event_fill_regs(vm_event_request_t *req) >> -{ >> - /* Not supported on ARM. */ >> -} >> +void vm_event_fill_regs(vm_event_request_t *req, >> + const struct cpu_user_regs *regs, >> + struct domain *d); >> >> #endif /* __ASM_ARM_VM_EVENT_H__ */ >> diff --git a/xen/include/public/vm_event.h b/xen/include/public/vm_event.h >> index 3acf217..fabeee8 100644 >> --- a/xen/include/public/vm_event.h >> +++ b/xen/include/public/vm_event.h >> @@ -129,8 +129,8 @@ >> #define VM_EVENT_X86_XCR0 3 >> >> /* >> - * Using a custom struct (not hvm_hw_cpu) so as to not fill >> - * the vm_event ring buffer too quickly. >> + * Using custom vCPU structs (i.e. not hvm_hw_cpu) for both x86 and ARM > > > You may want to rework this sentence as hvm_hw_cpu does not exist on ARM/ARM64. IMHO the point gets across even if we don't name the ARM structs specifically. It was more for more correctness from an ARM point of view. But fair enough. That is not true. is_domain_32bit will check if the domain is configured to run 32-bit or 64-bit in EL1 (i.e the kernel level). So if you have a guest with 64-bit kernel and 32-bit userspace, Xen will always fill the 64-bit structure, even when the userspace is running. Regards, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |