From: Gleb Natapov <gleb@redhat.com>
To: qemu-devel@nongnu.org
Cc: Yaniv Kamay <ykamay@redhat.com>
Subject: [Qemu-devel] [PATCH 3/3] Call piix3_reset() on system reset.
Date: Mon, 8 Jun 2009 15:56:06 +0300 [thread overview]
Message-ID: <1244465766-6349-3-git-send-email-gleb@redhat.com> (raw)
In-Reply-To: <1244465766-6349-1-git-send-email-gleb@redhat.com>
Also zero pci_irq_levels on reset to avoid stuck irq after reset.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Yaniv Kamay <ykamay@redhat.com>
---
hw/piix_pci.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/hw/piix_pci.c b/hw/piix_pci.c
index 914a65a..7b545ac 100644
--- a/hw/piix_pci.c
+++ b/hw/piix_pci.c
@@ -267,6 +267,8 @@ static void piix3_reset(PCIDevice *d)
pci_conf[0xab] = 0x00;
pci_conf[0xac] = 0x00;
pci_conf[0xae] = 0x00;
+
+ memset(pci_irq_levels, 0, sizeof(pci_irq_levels));
}
static void piix4_reset(PCIDevice *d)
@@ -339,6 +341,7 @@ int piix3_init(PCIBus *bus, int devfn)
PCI_HEADER_TYPE_NORMAL | PCI_HEADER_TYPE_MULTI_FUNCTION; // header_type = PCI_multifunction, generic
piix3_reset(d);
+ qemu_register_reset(piix3_reset, 0, d);
return d->devfn;
}
--
1.6.2.1
next prev parent reply other threads:[~2009-06-08 12:56 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-08 12:56 [Qemu-devel] [PATCH 1/3] Add rtc reset function Gleb Natapov
2009-06-08 12:56 ` [Qemu-devel] [PATCH 2/3] Add pci_bus_reset() function Gleb Natapov
2009-06-08 14:35 ` Avi Kivity
2009-06-08 14:37 ` Gleb Natapov
2009-06-08 14:42 ` Yaniv Kamay
2009-06-08 21:42 ` Dor Laor
2009-06-09 5:31 ` Gleb Natapov
2009-06-09 15:07 ` Blue Swirl
2009-06-09 15:24 ` Gleb Natapov
2009-06-09 15:53 ` Gleb Natapov
2009-06-09 16:07 ` Blue Swirl
2009-06-08 12:56 ` Gleb Natapov [this message]
2009-06-08 14:05 ` [Qemu-devel] Re: [PATCH 1/3] Add rtc reset function Jan Kiszka
2009-06-08 14:13 ` Gleb Natapov
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=1244465766-6349-3-git-send-email-gleb@redhat.com \
--to=gleb@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=ykamay@redhat.com \
/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).