qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] QEMU: PCI bus name on PowerPC platforms


From: address@hidden
Subject: Re: [Qemu-devel] QEMU: PCI bus name on PowerPC platforms
Date: Thu, 6 Mar 2014 02:25:16 +0000

Hi Alexey,

I just clone qemu from git://git.qemu.org/qemu.git.
commit f55ea6297cc0224fe4934b90ff5343b620b14669

$ ./configure --target-list=ppc64-softmmu --disable-sdl --disable-guest-agent 
--prefix="/usr/local"
$ make
$ ./ppc64-softmmu/qemu-system-ppc64 --version
QEMU emulator version 1.7.50, Copyright (c) 2003-2008 Fabrice Bellard


Since libvirt only recognize 'pci' on platforms exclude x86_86/i686, 
so it will work with 'pci' on pseries.

$ ./ppc64-softmmu/qemu-system-ppc64 -serial tcp::4444,server,telnet -nographic 
-M pseries
QEMU 1.7.50 monitor - type 'help' for more information
(qemu) QEMU waiting for connection on: telnet:0.0.0.0:4444,server
Warning: Disabling some instructions which are not emulated by TCG (0x0, 0x4)

(qemu) info qtree
bus: main-system-bus
  type System
  dev: spapr-pci-host-bridge, id ""
    index = 0 (0)
    buid = 576460752840294400 (0x800000020000000)
    liobn = 2147483648 (0x80000000)
    mem_win_addr = 1102195982336 (0x100a0000000)
    mem_win_size = 536870912 (0x20000000)
    io_win_addr = 1101659111424 (0x10080000000)
    io_win_size = 65536 (0x10000)
    irq 0
    bus: pci
...

But our problem happened on mpc8544ds/ppce500 and most of other PPC 
platforms because they use 'pci.0' as bus name and there's no 'pci'.

$ ./ppc64-softmmu/qemu-system-ppc64 -serial tcp::4444,server,telnet -nographic 
-M ppce500
QEMU 1.7.50 monitor - type 'help' for more information
(qemu) QEMU waiting for connection on: telnet:0.0.0.0:4444,server

(qemu) info qtree
bus: main-system-bus
  type System
  dev: e500-spin, id ""
    irq 0
    mmio 00000000ef000000/0000000000000400
  dev: e500-pcihost, id ""
    first_slot = 1 (0x1)
    irq 4
    mmio ffffffffffffffff/0000000000001000
    mmio 00000000e1000000/0000000000010000
    bus: pci.0
...

We wish create a whole solution for all PowerPC platforms in libvirt.
So the comments from different vendors will be very important.

Best Regards,
Olivia


> -----Original Message-----
> From: Alexey Kardashevskiy [mailto:address@hidden
> Sent: Wednesday, March 05, 2014 11:16 PM
> To: Paolo Bonzini; Yin Olivia-R63875; address@hidden;
> address@hidden
> Cc: address@hidden; address@hidden; Li Zhang
> Subject: Re: QEMU: PCI bus name on PowerPC platforms
> 
> On 03/06/2014 12:35 AM, Paolo Bonzini wrote:
> > Il 05/03/2014 12:43, Alexey Kardashevskiy ha scritto:
> >>
> >> I just tried current upstresm QEMU and it handles bus=pci fine, it
> >> prints an error on bus=pci.0 so I am confused - what qemu are you trying?
> >
> > See below:
> 
> I understand, just got confused that "pci" did not work.
> 
> 
> > 1) virtex-ml507
> > 2) pseries
> > Warning: Disabling some instructions which are not emulated by TCG (0x0,
> 0x4)
> >     bus: pci
> > 3) prep
> >     bus: pci.0
> > 4) bamboo
> >     bus: pci.0
> > 5) ref405ep
> > qemu-system-ppc64: Could not load PowerPC BIOS 'ppc405_rom.bin'
> > 6) taihu
> > qemu-system-ppc64: Could not load PowerPC BIOS 'ppc405_rom.bin'
> > 7) mpc8544ds
> >     bus: pci.0
> > 8) g3beige
> >     bus: pci.0
> > 9) mac99
> >     bus: pci.0
> > 10) ppce500
> >     bus: pci.0
> >
> > pseries is the odd one, I think the right thing to do is for QEMU to
> > change the bus name incompatibly, and libvirt to cope with it.
> 
> Originally "pci" was used to make libvirt happy so we can easily switch
> pseries to pci.0 or NULL.
> 
> 
> 
> --
> Alexey
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]