From: Paolo Bonzini <pbonzini@redhat.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH v3 3/3] spapr: make irq customizable via qdev
Date: Mon, 6 Jun 2011 16:16:20 +0200 [thread overview]
Message-ID: <1307369780-28189-4-git-send-email-pbonzini@redhat.com> (raw)
In-Reply-To: <1307369780-28189-1-git-send-email-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
hw/spapr_vio.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/hw/spapr_vio.c b/hw/spapr_vio.c
index 6f34159..a193caa 100644
--- a/hw/spapr_vio.c
+++ b/hw/spapr_vio.c
@@ -52,6 +52,10 @@
static struct BusInfo spapr_vio_bus_info = {
.name = "spapr-vio",
.size = sizeof(VIOsPAPRBus),
+ .props = (Property[]) {
+ DEFINE_PROP_UINT32("irq", VIOsPAPRDevice, vio_irq_num, 0), \
+ DEFINE_PROP_END_OF_LIST(),
+ },
};
VIOsPAPRDevice *spapr_vio_find_by_reg(VIOsPAPRBus *bus, uint32_t reg)
@@ -603,7 +607,9 @@ static int spapr_vio_busdev_init(DeviceState *qdev, DeviceInfo *qinfo)
}
dev->qdev.id = id;
- dev->vio_irq_num = spapr_allocate_irq (spapr);
+ if (!dev->vio_irq_num) {
+ dev->vio_irq_num = spapr_allocate_irq (spapr);
+ }
dev->qirq = xics_find_qirq(spapr->icp, dev->vio_irq_num);
rtce_init(dev);
--
1.7.4.4
next prev parent reply other threads:[~2011-06-06 14:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-06 14:16 [Qemu-devel] [PATCH v3 0/3] spapr qdevification Paolo Bonzini
2011-06-06 14:16 ` [Qemu-devel] [PATCH v3 1/3] spapr: proper qdevification Paolo Bonzini
2011-06-06 14:16 ` [Qemu-devel] [PATCH v3 2/3] spapr: prepare for qdevification of irq Paolo Bonzini
2011-06-06 14:16 ` Paolo Bonzini [this message]
2011-06-07 7:51 ` [Qemu-devel] [PATCH v3 3/3] spapr: make irq customizable via qdev Markus Armbruster
2011-06-07 9:05 ` Paolo Bonzini
2011-06-07 9:19 ` Markus Armbruster
2011-06-07 11:14 ` Paolo Bonzini
2011-07-06 11:32 ` [Qemu-devel] [PATCH v3 0/3] spapr qdevification Paolo Bonzini
2011-07-07 14:15 ` Alexander Graf
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=1307369780-28189-4-git-send-email-pbonzini@redhat.com \
--to=pbonzini@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).