From: Wei Liu Subject: Re: [PATCH] libxl, hvmloader: Don't relocate memory for MMIO hole Date: Mon, 17 Jun 2013 18:09:17 +0100 Message-ID: <20130617170917.GF1757@zion.uk.xensource.com> References: <1371487427-13025-1-git-send-email-george.dunlap@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1371487427-13025-1-git-send-email-george.dunlap@eu.citrix.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: George Dunlap Cc: wei.liu2@citrix.com, Ian Campbell , Hanweidong , xen-devel@lists.xen.org, Stefano Stabellini , Ian Jackson List-Id: xen-devel@lists.xenproject.org On Mon, Jun 17, 2013 at 05:43:47PM +0100, George Dunlap wrote: [...] > > #include > #include > +#include > > unsigned long pci_mem_start = PCI_MEM_START; > unsigned long pci_mem_end = PCI_MEM_END; > @@ -58,6 +59,15 @@ void pci_setup(void) > } *bars = (struct bars *)scratch_start; > unsigned int i, nr_bars = 0; > > + const char *s; > + uint8_t allow_memory_relocate=1; Missing white space around '='. And there are similar style problems below as well. > + > + s = xenstore_read(HVM_XS_ALLOW_MEMORY_RELOCATE, NULL); > + if (s) > + allow_memory_relocate=(uint8_t)strtoll(s, NULL, 0); > + printf("allow_memory_relocate %u\n", > + __func__, allow_memory_relocate); Missing "%s" in format string? Wei.