Extend ioreq-server to support page write protection
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 16 repliesIn review
- v22 patches 11 repliesSuperseded
- v12 patches 43 repliesSuperseded
Changes in v3 from the cover letter
- Remove excute attribute of the new p2m type p2m_mmio_write_dm
- Use existing rangeset for keeping the write protection page range instead of introducing hash table.
- Some code style fix.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | x86: add p2m_mmio_write_dmxen/ xen/ xen/ +1 more | +5 | 2 replies | |
| 2/2 | ioreq-server: write protected range and forwardingtools/ tools/ xen/ +2 more | +99 | 14 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/2] Extend ioreq-server to support page write protection
Changes from v1:
- Changes the new p2m type name from p2m_ram_wp to p2m_mmio_write_dm. This means that we treat the pages as a special mmio range instead of ram.
- Move macros to c file since only this file is using them.
- Address various comments from Jan.
Changes from v2:
- Remove excute attribute of the new p2m type p2m_mmio_write_dm
- Use existing rangeset for keeping the write protection page range instead of introducing hash table.
- Some code style fix.
ioreq-server is proposed to forward PIO and MMIO request to multiple device models according to the io range. XenGT (Intel Graphics Virtualization technology, please refer to https://01.org/xen/blogs/srclarkx/2013/graphics-virtualization-
xengt) driver reside in Dom0 as a virtual graphics device model also need to trap and emulate the guest's write operation to some specific memory pages, like the memory pages used by guest graphics driver as PPGTT(per-process graphics translation table). We add an new p2m type "p2m_mmio_write_dm" to trap the page write operation. Page of this new p2m type is read only and for write, the request will go to device model via ioreq-server.
Wei Ye (2):
x86: add p2m_mmio_write_dm
ioreq-server: write protected range and forwarding
tools/libxc/xc_domain.c | 30 ++++++++++++++++++++++ tools/libxc/xenctrl.h | 18 ++++++++++++++ xen/arch/x86/hvm/hvm.c | 51 ++++++++++++++++++++++++++++++++++++-- xen/arch/x86/mm/p2m-ept.c | 1 + xen/arch/x86/mm/p2m-pt.c | 1 + xen/include/asm-x86/hvm/domain.h | 2 +- xen/include/asm-x86/p2m.h | 1 + xen/include/public/hvm/hvm_op.h | 1 + 8 files changed, 102 insertions(+), 3 deletions(-)
Signature · 1 line
1.7.9.5