From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean Guyader Subject: [PATCH] [passthrough] Change init for pt_pci_host return value. Date: Mon, 16 Jan 2012 14:40:07 +0000 Message-ID: <1326724807-25718-1-git-send-email-jean.guyader@eu.citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------true" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Ian.Jackson@eu.citrix.com, allen.m.kay@intel.com, Jean Guyader List-Id: xen-devel@lists.xenproject.org --------------true Content-Type: text/plain; charset="UTF-8"; format=fixed Content-Transfer-Encoding: 8bit With an init of -1 all the return value smaller than a double word will be prefixed with "f"s. Signed-off-by: Jean Guyader --- hw/pass-through.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) --------------true Content-Type: text/x-patch; name="0001-passthrough-Change-init-for-pt_pci_host-return-value.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="0001-passthrough-Change-init-for-pt_pci_host-return-value.patch" diff --git a/hw/pass-through.c b/hw/pass-through.c index dbe8804..6a77657 100644 --- a/hw/pass-through.c +++ b/hw/pass-through.c @@ -2085,7 +2085,7 @@ struct pci_dev *pt_pci_get_dev(int bus, int dev, int fn) u32 pt_pci_host_read(struct pci_dev *pci_dev, u32 addr, int len) { - u32 val = -1; + u32 val = 0; pci_access_init(); pci_read_block(pci_dev, addr, (u8 *) &val, len); --------------true Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------true--