From: Ken CC <ken.ccao@gmail.com> To: kvm@vger.kernel.org Cc: yamahata@valinux.co.jp, qemu-devel@nongnu.org Subject: [PATCH 1/3] PCI: define max devices number on PCIBus as PCIBUS_MAX_DEVICES in pci.h Date: Tue, 24 Aug 2010 14:33:07 +0800 [thread overview] Message-ID: <20100824063307.GA10815@kt> (raw) Signed-off-by: Ken CC <ken.ccao@gmail.com> --- hw/pci.c | 2 +- hw/pci.h | 1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index 70dbace..02019a1 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -47,7 +47,7 @@ struct PCIBus { pci_hotplug_fn hotplug; DeviceState *hotplug_qdev; void *irq_opaque; - PCIDevice *devices[256]; + PCIDevice *devices[PCIBUS_MAX_DEVICES]; PCIDevice *parent_dev; target_phys_addr_t mem_base; diff --git a/hw/pci.h b/hw/pci.h index ccb99d0..f90840c 100644 --- a/hw/pci.h +++ b/hw/pci.h @@ -100,6 +100,7 @@ typedef struct PCIIORegion { #define PCI_ROM_SLOT 6 #define PCI_NUM_REGIONS 7 +#define PCIBUS_MAX_DEVICES 256 #include "pci_regs.h"
WARNING: multiple messages have this Message-ID
From: Ken CC <ken.ccao@gmail.com> To: kvm@vger.kernel.org Cc: yamahata@valinux.co.jp, qemu-devel@nongnu.org Subject: [Qemu-devel] [PATCH 1/3] PCI: define max devices number on PCIBus as PCIBUS_MAX_DEVICES in pci.h Date: Tue, 24 Aug 2010 14:33:07 +0800 [thread overview] Message-ID: <20100824063307.GA10815@kt> (raw) Signed-off-by: Ken CC <ken.ccao@gmail.com> --- hw/pci.c | 2 +- hw/pci.h | 1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index 70dbace..02019a1 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -47,7 +47,7 @@ struct PCIBus { pci_hotplug_fn hotplug; DeviceState *hotplug_qdev; void *irq_opaque; - PCIDevice *devices[256]; + PCIDevice *devices[PCIBUS_MAX_DEVICES]; PCIDevice *parent_dev; target_phys_addr_t mem_base; diff --git a/hw/pci.h b/hw/pci.h index ccb99d0..f90840c 100644 --- a/hw/pci.h +++ b/hw/pci.h @@ -100,6 +100,7 @@ typedef struct PCIIORegion { #define PCI_ROM_SLOT 6 #define PCI_NUM_REGIONS 7 +#define PCIBUS_MAX_DEVICES 256 #include "pci_regs.h"
next reply other threads:[~2010-08-24 6:33 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-08-24 6:33 Ken CC [this message] 2010-08-24 6:33 ` [Qemu-devel] " Ken CC 2010-08-24 6:48 ` [PATCH 2/3] pci init: fail qemu if devfn exceeding the max devices number supported on bus Ken CC 2010-08-24 6:48 ` [Qemu-devel] " Ken CC 2010-08-24 6:49 ` [PATCH 3/3] Check pci slot number in parse_pci_devfn Ken CC 2010-08-24 6:49 ` [Qemu-devel] " Ken CC 2010-08-24 11:35 ` Isaku Yamahata 2010-08-24 11:35 ` Isaku Yamahata 2010-08-24 11:42 ` Avi Kivity 2010-08-24 11:42 ` Avi Kivity 2010-08-24 12:07 ` Isaku Yamahata 2010-08-24 12:07 ` Isaku Yamahata 2010-08-24 12:04 ` Avi Kivity 2010-08-24 12:04 ` Avi Kivity 2010-08-24 12:16 ` Chen Cao 2010-08-24 12:16 ` Chen Cao 2010-08-24 12:19 ` Avi Kivity 2010-08-24 12:19 ` Avi Kivity 2010-08-24 12:24 ` Isaku Yamahata 2010-08-24 12:24 ` Isaku Yamahata 2010-08-24 12:16 ` Avi Kivity 2010-08-24 12:16 ` Avi Kivity
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=20100824063307.GA10815@kt \ --to=ken.ccao@gmail.com \ --cc=kvm@vger.kernel.org \ --cc=qemu-devel@nongnu.org \ --cc=yamahata@valinux.co.jp \ --subject='Re: [PATCH 1/3] PCI: define max devices number on PCIBus as PCIBUS_MAX_DEVICES in pci.h' \ /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
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.