From: Markus Armbruster <armbru@redhat.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH 1/4] Fix do_pci_register_device() to reject devfn already in use
Date: Thu, 18 Jun 2009 15:14:07 +0200 [thread overview]
Message-ID: <efb51cf14172857e392fe5e3208473b2081319b7.1245324582.git.armbru@redhat.com> (raw)
In-Reply-To: <cover.1245324581.git.armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
hw/pci.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/hw/pci.c b/hw/pci.c
index 0a738db..36c92d7 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -251,6 +251,8 @@ static PCIDevice *do_pci_register_device(PCIDevice *pci_dev, PCIBus *bus,
}
return NULL;
found: ;
+ } else if (bus->devices[devfn]) {
+ return NULL;
}
pci_dev->bus = bus;
pci_dev->devfn = devfn;
--
1.6.0.6
next prev parent reply other threads:[~2009-06-18 13:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-18 13:14 [Qemu-devel] [RFC PATCH 0/4] Configurable PCI device addresses Markus Armbruster
2009-06-18 13:14 ` Markus Armbruster [this message]
2009-06-18 13:14 ` [Qemu-devel] [PATCH 2/4] Support addr=... in option argument of -net nic Markus Armbruster
2009-06-18 13:14 ` [Qemu-devel] [PATCH 3/4] Make first argument of monitor command pci_add work Markus Armbruster
2009-06-18 13:14 ` [Qemu-devel] [PATCH 4/4] Support addr=... in option argument of -drive if=virtio Markus Armbruster
2009-06-18 14:18 ` [Qemu-devel] [RFC PATCH 0/4] Configurable PCI device addresses Richard W.M. Jones
2009-06-18 14:25 ` Gerd Hoffmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=efb51cf14172857e392fe5e3208473b2081319b7.1245324582.git.armbru@redhat.com \
--to=armbru@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).