Re: [Xen-devel] [v3][PATCH 13/16] tools/libxl: detect and avoid conflicts with RDM

2015-06-15 Thread Chen, Tiejun
On 2015/6/15 23:01, Wei Liu wrote: On Mon, Jun 15, 2015 at 09:50:49AM +0800, Chen, Tiejun wrote: [...] + uint32_t flag, + uint16_t seg, + uint8_t bus, + uint8_t devfn, + unsigned int *nr_entries) +{ +st

Re: [Xen-devel] [v3][PATCH 13/16] tools/libxl: detect and avoid conflicts with RDM

2015-06-15 Thread Wei Liu
On Mon, Jun 15, 2015 at 09:50:49AM +0800, Chen, Tiejun wrote: [...] > >>+ uint32_t flag, > >>+ uint16_t seg, > >>+ uint8_t bus, > >>+ uint8_t devfn, > >>+ unsigned int *nr_entries) > >>+{ > >>+struct xen_r

Re: [Xen-devel] [v3][PATCH 13/16] tools/libxl: detect and avoid conflicts with RDM

2015-06-14 Thread Chen, Tiejun
On 2015/6/13 0:39, Wei Liu wrote: On Thu, Jun 11, 2015 at 09:15:22AM +0800, Tiejun Chen wrote: [...] +++ b/tools/libxc/xc_hvm_build_x86.c @@ -21,6 +21,7 @@ #include #include #include +#include #include "xg_private.h" #include "xc_private.h" @@ -270,7 +271,7 @@ static int setup_gue

Re: [Xen-devel] [v3][PATCH 13/16] tools/libxl: detect and avoid conflicts with RDM

2015-06-12 Thread Wei Liu
On Thu, Jun 11, 2015 at 09:15:22AM +0800, Tiejun Chen wrote: [...] > +++ b/tools/libxc/xc_hvm_build_x86.c > @@ -21,6 +21,7 @@ > #include > #include > #include > +#include > > #include "xg_private.h" > #include "xc_private.h" > @@ -270,7 +271,7 @@ static int setup_guest(xc_interface *xch,

Re: [Xen-devel] [v3][PATCH 13/16] tools/libxl: detect and avoid conflicts with RDM

2015-06-12 Thread Chen, Tiejun
On 2015/6/11 18:19, Tian, Kevin wrote: From: Chen, Tiejun Sent: Thursday, June 11, 2015 9:15 AM While building a VM, HVM domain builder provides struct hvm_info_table{} to help hvmloader. Currently it includes two fields to construct guest e820 table by hvmloader, low_mem_pgend and high_mem_pgen

Re: [Xen-devel] [v3][PATCH 13/16] tools/libxl: detect and avoid conflicts with RDM

2015-06-11 Thread Tian, Kevin
> From: Chen, Tiejun > Sent: Thursday, June 11, 2015 9:15 AM > > While building a VM, HVM domain builder provides struct hvm_info_table{} > to help hvmloader. Currently it includes two fields to construct guest > e820 table by hvmloader, low_mem_pgend and high_mem_pgend. So we should > check them

[Xen-devel] [v3][PATCH 13/16] tools/libxl: detect and avoid conflicts with RDM

2015-06-10 Thread Tiejun Chen
While building a VM, HVM domain builder provides struct hvm_info_table{} to help hvmloader. Currently it includes two fields to construct guest e820 table by hvmloader, low_mem_pgend and high_mem_pgend. So we should check them to fix any conflict with RAM. RMRR can reside in address space beyond 4