From: Cao jin <caoj.fnst@cn.fujitsu.com>
To: qemu-devel@nongnu.org
Cc: mst@redhat.com, qemu-ppc@nongnu.org, agraf@suse.de, armbru@redhat.com
Subject: Re: [Qemu-devel] [PATCH v3 0/2] change type of pci_bridge_initfn()
Date: Thu, 14 Jan 2016 20:31:45 +0800 [thread overview]
Message-ID: <56979531.8030805@cn.fujitsu.com> (raw)
In-Reply-To: <1452774233-32423-1-git-send-email-caoj.fnst@cn.fujitsu.com>
[-- Attachment #1: Type: text/plain, Size: 1887 bytes --]
Did a hack to test dec realization:
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
index 319497e..134ab94 100644
--- a/hw/i386/pc_piix.c
+++ b/hw/i386/pc_piix.c
@@ -54,6 +54,7 @@
#endif
#include "migration/migration.h"
#include "kvm_i386.h"
+#include "hw/pci-bridge/dec.h" //hack
#define MAX_IDE_BUS 2
@@ -85,6 +86,7 @@ static void pc_init1(MachineState *machine,
MemoryRegion *system_io = get_system_io();
int i;
PCIBus *pci_bus;
+ PCIBus *sec_bus; //hack
ISABus *isa_bus;
PCII440FXState *i440fx_state;
int piix3_devfn = -1;
@@ -206,6 +208,9 @@ static void pc_init1(MachineState *machine,
}
isa_bus_irqs(isa_bus, gsi);
+ sec_bus = pci_dec_21154_init(pci_bus, -1);//hack
+ sec_bus = sec_bus; //suppress warning
+
if (kvm_pic_in_kernel()) {
i8259 = kvm_i8259_init(isa_bus);
} else if (xen_enabled()) {
Then add "CONFIG_DEC_PCI=y" in x86_64-softmmu/config-devices.mak
Then, Can see dec bridge as attachment shows
On 01/14/2016 08:23 PM, Cao jin wrote:
> v3 changelog:
> 1. Just tweaked the commit message.
>
> Test:
> 1. Compiled.
> 2. Did a hack to test dec bridge realization, prove it is ok after patch.
> Will reply this mail to attach the screenshot.
>
> Cao jin (2):
> dec: convert to realize()
> change type of pci_bridge_initfn() to void
>
> hw/pci-bridge/dec.c | 6 +++---
> hw/pci-bridge/i82801b11.c | 5 +----
> hw/pci-bridge/ioh3420.c | 6 +-----
> hw/pci-bridge/pci_bridge_dev.c | 8 +++-----
> hw/pci-bridge/xio3130_downstream.c | 6 +-----
> hw/pci-bridge/xio3130_upstream.c | 6 +-----
> hw/pci-host/apb.c | 5 +----
> hw/pci/pci_bridge.c | 3 +--
> include/hw/pci/pci_bridge.h | 2 +-
> 9 files changed, 13 insertions(+), 34 deletions(-)
>
--
Yours Sincerely,
Cao jin
[-- Attachment #2: dec_realize_test.jpg --]
[-- Type: image/jpeg, Size: 182239 bytes --]
prev parent reply other threads:[~2016-01-14 12:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-14 12:23 [Qemu-devel] [PATCH v3 0/2] change type of pci_bridge_initfn() Cao jin
2016-01-14 12:23 ` [Qemu-devel] [PATCH v3 1/2] dec: convert to realize() Cao jin
2016-01-14 14:27 ` Marcel Apfelbaum
2016-01-14 12:23 ` [Qemu-devel] [PATCH v3 2/2] change type of pci_bridge_initfn() to void Cao jin
2016-01-14 15:42 ` Marcel Apfelbaum
2016-01-15 1:59 ` Cao jin
2016-01-14 12:31 ` Cao jin [this message]
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=56979531.8030805@cn.fujitsu.com \
--to=caoj.fnst@cn.fujitsu.com \
--cc=agraf@suse.de \
--cc=armbru@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@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).