 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v3 1/2] Differentiate IO/mem resources tracked by ioreq server
 On 8/11/2015 4:25 PM, Paul Durrant wrote: -----Original Message----- From: Yu, Zhang [mailto:yu.c.zhang@xxxxxxxxxxxxxxx] Sent: 11 August 2015 08:57 To: Paul Durrant; Andrew Cooper; Wei Liu Cc: xen-devel@xxxxxxxxxxxxx; Ian Jackson; Stefano Stabellini; Ian Campbell; Keir (Xen.org); jbeulich@xxxxxxxx; Kevin Tian; zhiyuan.lv@xxxxxxxxx Subject: Re: [PATCH v3 1/2] Differentiate IO/mem resources tracked by ioreq server On 8/10/2015 6:57 PM, Paul Durrant wrote:-----Original Message----- From: Andrew Cooper [mailto:andrew.cooper3@xxxxxxxxxx] Sent: 10 August 2015 11:56 To: Paul Durrant; Wei Liu; Yu Zhang Cc: xen-devel@xxxxxxxxxxxxx; Ian Jackson; Stefano Stabellini; Ian Campbell; Keir (Xen.org); jbeulich@xxxxxxxx; Kevin Tian; zhiyuan.lv@xxxxxxxxx Subject: Re: [PATCH v3 1/2] Differentiate IO/mem resources tracked byioreqserver On 10/08/15 09:33, Paul Durrant wrote:-----Original Message----- From: Wei Liu [mailto:wei.liu2@xxxxxxxxxx] Sent: 10 August 2015 09:26 To: Yu Zhang Cc: xen-devel@xxxxxxxxxxxxx; Paul Durrant; Ian Jackson; StefanoStabellini;IanCampbell; Wei Liu; Keir (Xen.org); jbeulich@xxxxxxxx; Andrew Cooper; Kevin Tian; zhiyuan.lv@xxxxxxxxx Subject: Re: [PATCH v3 1/2] Differentiate IO/mem resources tracked byioreqserver On Mon, Aug 10, 2015 at 11:33:40AM +0800, Yu Zhang wrote:Currently in ioreq server, guest write-protected ram pages are tracked in the same rangeset with device mmio resources. Yet unlike device mmio, which can be in big chunks, the guest write- protected pages may be discrete ranges with 4K bytes each. This patch uses a seperate rangeset for the guest ram pages. And a new ioreq type, IOREQ_TYPE_MEM, is defined. Note: Previously, a new hypercall or subop was suggested to map write-protected pages into ioreq server. However, it turned out handler of this new hypercall would be almost the same with the existing pair - HVMOP_[un]map_io_range_to_ioreq_server, andthere'salready a type parameter in this hypercall. So no new hypercall defined, only a new type is introduced. Signed-off-by: Yu Zhang <yu.c.zhang@xxxxxxxxxxxxxxx> --- tools/libxc/include/xenctrl.h | 39 +++++++++++++++++++++++--- tools/libxc/xc_domain.c | 59++++++++++++++++++++++++++++++++++++++-- FWIW the hypercall wrappers look correct to me.diff --git a/xen/include/public/hvm/hvm_op.hb/xen/include/public/hvm/hvm_op.h So, how about we keep the HVMOP_IO_RANGE_MEMORY name for MMIO, and use a new one, say HVMOP_IO_RANGE_WP_MEM, for write-protected rams only? :) Thanks Yu PaulThanks Yu _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel 
 
 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |