[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 0/2 for-4.12] Introduce runstate area registration with phys address



From: Andrii Anisov <andrii_anisov@xxxxxxxx>

Following discussion [1] it is introduced and implemented a runstate
registration interface which uses guest's phys address instead of a virtual one.
The new hypercall employes the same data structures as a predecessor, but
expects the vcpu_runstate_info structure to not cross a page boundary.
The interface is implemented in a way vcpu_runstate_info structure is mapped to
the hypervisor on the hypercall processing and is directly accessed during its
updates. This runstate area mapping follows vcpu_info structure registration.

The series is tested for ARM64. Build tested for x86. I'd appreciate if someone 
could
check it with x86.
The Linux kernel patch is here [2]. Though it is for 4.14.

[1] https://lists.xenproject.org/archives/html/xen-devel/2019-02/msg00416.html
[2] 
https://github.com/aanisov/linux/commit/ba34d2780f57ea43f81810cd695aace7b55c0f29

Andrii Anisov (2):
  xen: introduce VCPUOP_register_runstate_phys_memory_area hypercall
  xen: implement VCPUOP_register_runstate_phys_memory_area

 xen/arch/arm/domain.c        | 59 +++++++++++++++++++--------
 xen/arch/x86/domain.c        | 87 ++++++++++++++++++++++++++++------------
 xen/common/domain.c          | 95 +++++++++++++++++++++++++++++++++++++++++++-
 xen/include/asm-arm/domain.h |  2 +
 xen/include/public/vcpu.h    | 16 ++++++++
 xen/include/xen/domain.h     |  5 +++
 xen/include/xen/sched.h      |  7 ++++
 7 files changed, 227 insertions(+), 44 deletions(-)

-- 
2.7.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.