From: Ian Jackson Subject: Re: [v5][PATCH 11/16] tools/libxl: detect and avoid conflicts with RDM Date: Tue, 7 Jul 2015 12:51:48 +0100 Message-ID: <21915.48468.186315.254883@mariner.uk.xensource.com> References: <1436249837-14747-1-git-send-email-tiejun.chen@intel.com> <1436249837-14747-12-git-send-email-tiejun.chen@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1436249837-14747-12-git-send-email-tiejun.chen@intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Tiejun Chen Cc: Stefano Stabellini , Wei Liu , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Tiejun Chen writes ("[v5][PATCH 11/16] tools/libxl: detect and avoid conflicts with RDM"): > 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 RDM. ... > Note later we need to provide a parameter to set that predefined boundary > dynamically. Why ... > +libxl_device_rdm = Struct("device_rdm", [ > + ("start", uint64), > + ("size", uint64), > + ("flag", libxl_rdm_reserve_flag), > + ]) > + > libxl_device_dtdev = Struct("device_dtdev", [ > ("path", string), > ]) > @@ -592,6 +598,7 @@ libxl_domain_config = Struct("domain_config", [ > ("disks", Array(libxl_device_disk, "num_disks")), > ("nics", Array(libxl_device_nic, "num_nics")), > ("pcidevs", Array(libxl_device_pci, "num_pcidevs")), > + ("rdms", Array(libxl_device_rdm, "num_rdms")), > ("dtdevs", Array(libxl_device_dtdev, "num_dtdevs")), > ("vfbs", Array(libxl_device_vfb, "num_vfbs")), > ("vkbs", Array(libxl_device_vkb, "num_vkbs")), ... does this need to be exposed at the libxl API ? Are we expecting that callers will want to specify the rdms set explicitly ? Ian.