qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 00/26] q35 chipset support for native pci express support
@ 2011-03-16  9:29 Isaku Yamahata
  2011-03-16  9:29 ` [Qemu-devel] [PATCH 01/26] pci: replace the magic, 256, for the maximum of slot Isaku Yamahata
                   ` (27 more replies)
  0 siblings, 28 replies; 72+ messages in thread
From: Isaku Yamahata @ 2011-03-16  9:29 UTC (permalink / raw)
  To: qemu-devel; +Cc: yamahata

This patch series adds basic q35 chipset support for native pci express
support. Some bios related patches are still needed.
For those who want to try it, the following repo is avaiable.
(vgabios doesn't need patches, so use the upstream one)

git clone http://people.valinux.co.jp/~yamahata/qemu/q35/20110316/qemu
git clone http://people.valinux.co.jp/~yamahata/qemu/q35/20110316/seabios

Example:
qemu-system-x86_64 ... -M pc_q35 -acpitable 'load_header,data=roms/seabios/src/q35-acpi-dsdt.aml


The motivation is to support newer hardware features because
piix chipset is very old.
Especially I have PCI express in mind and this is the basic infrastructure
for PCI express hot plug and PCI express native direct attach.
I can boot Linux with PCIe MMCONFIG with APIC mode pci interrupt routing.
I haven't tested other OSes.

The patch series consist as following

- Firstly, some PCI patches which introduce helper functions and so on.
- Then, PC initialization related patches which simplifies pc board
  initialization, pc_init1().
- Thirdly, factoring out the logics which are common to the existing
   piix and q35. ie. smram, pam and acpi logic.
- At last introduce q35 chipset emulator which is able to handle
  pci express natively.

Thanks,

Change from v7:
- heavily reorganized and improved.
- factoring out code duplication.
- improved irq routing fully.

Changes from split out piix specific part from pc emulator. V6
- rebased to 731c54f86988d3f28268f184fabfe9b2a32fb5d3
- PCIe MMCONFIG
- pci bridge related fixes
- chipset emulator works.
- IOAPIC patches

Changes from v5:
- rebased 0.11.0-rc0
- changed qemu_system_powerdown_register() to call
  qemu_system_shutdown_request() if qemu_system_shutdown() is called before
  registering.

Changes from v4:
- fix version number.
- rebased anthony's staging tree whose latest change set is
  62969268f876c547ee64da6d60e0f363e0f1df75

Changes from v3:
- move qemu_system_powerdown() in vl.c and more generic
  following the comment by Marcelo Tosatti <mtosatti@redhat.com>
  acpi.c: make qemu_system_powerdown() piix independent.
- define cmos_set_s3_resume_init() and cmos_set_s3_resume() in pc.c
  even if TARGET_I386 isn't defined following th ecommit by
  Paolo Bonzini <bonzini@gnu.org>
  pc.c: remove a global variable, RTCState *rtc_state.
- minor compilation fixes

Changes from v2:
- clean up pc_pci_device_init() not to use unnecessary braces.

Changes from v1:
- make patches full bisectable
- typo s/allocte/allocate/
- some minor fixes
- dropped a merged patch

Isaku Yamahata (26):
  pci: replace the magic, 256, for the maximum of slot
  pci: add opaque argument to pci_map_irq_fn
  pci: introduce pci_swizzle_map_irq_fn() for standardized interrupt
    pin swizzle
  pci: add accessor function to get irq levels
  piix_pci: eliminate PIIX3State::pci_irq_levels
  pci_bridge: add helper function to convert PCIBridge into PCIDevice
  pci/p2pbr: generic pci p2p bridge
  apb_pci: simplify apb_pci.c by using pci_p2pbr
  dec_pci: simplify dec_pci.c by using pci_p2pbr
  ide/ahci/ich: use qdev.reset
  ahci: add ide device initialization helper
  usb/uhci: generalize initialization
  usb/uhci: add ich9 usb uhci id's device
  ide: consolidate drive_get(IF_IDE)
  smbus_eeprom: consolidate smbus eeprom creation
  pc, pc_piix: split out allocating isa irqs
  pc, pc_piix: split out pc nic initialization
  ioapic: move ioapic_init() from pc_piix.c to pc.c
  pc/piix_pci: factor out smram/pam logic
  pc, i440fx: simply i440fx initialization
  acpi, acpi_piix: factor out PM_TMR logic
  acpi, acpi_piix: factor out PM1a EVT logic
  acpi, acpi_piix: factor out PM1_CNT logic
  acpi, acpi_piix: factor out GPE logic
  pci_ids: add intel 82801BA pci-to-pci bridge id and
    PCI_CLASS_SERIAL_SMBUS
  pc q35 based chipset emulator

 Makefile.objs      |    2 +-
 Makefile.target    |    3 +-
 hw/acpi.c          |  197 ++++++++++++
 hw/acpi.h          |   68 ++++
 hw/acpi_ich9.c     |  314 +++++++++++++++++++
 hw/acpi_ich9.h     |   53 ++++
 hw/acpi_piix4.c    |  220 ++++----------
 hw/apb_pci.c       |   67 ++---
 hw/bonito.c        |    2 +-
 hw/dec_pci.c       |   51 +---
 hw/grackle_pci.c   |    2 +-
 hw/gt64xxx.c       |    2 +-
 hw/ide.h           |    6 +
 hw/ide/ahci.c      |   15 +
 hw/ide/core.c      |   14 +
 hw/ide/ich.c       |    9 +-
 hw/mips_fulong2e.c |   18 +-
 hw/mips_malta.c    |   22 +--
 hw/mips_r4k.c      |   10 +-
 hw/pam.c           |  128 ++++++++
 hw/pam.h           |   96 ++++++
 hw/pc.c            |   47 +++-
 hw/pc.h            |    7 +-
 hw/pc_piix.c       |   64 +----
 hw/pc_q35.c        |  359 +++++++++++++++++++++
 hw/pci.c           |   27 ++-
 hw/pci.h           |    6 +-
 hw/pci_bridge.c    |    6 +
 hw/pci_bridge.h    |    1 +
 hw/pci_ids.h       |   17 +
 hw/pci_internals.h |    2 +-
 hw/pci_p2pbr.c     |  151 +++++++++
 hw/pci_p2pbr.h     |   61 ++++
 hw/piix_pci.c      |  117 +++-----
 hw/ppc4xx_pci.c    |    2 +-
 hw/ppc_newworld.c  |   11 +-
 hw/ppc_oldworld.c  |   11 +-
 hw/ppc_prep.c      |   10 +-
 hw/ppce500_pci.c   |    2 +-
 hw/prep_pci.c      |    2 +-
 hw/q35.c           |  877 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 hw/q35.h           |  271 ++++++++++++++++
 hw/q35_smbus.c     |  154 +++++++++
 hw/sh_pci.c        |    2 +-
 hw/smbus.h         |    3 +
 hw/smbus_eeprom.c  |   22 ++-
 hw/sun4u.c         |    9 +-
 hw/unin_pci.c      |    2 +-
 hw/usb-uhci.c      |   93 +++---
 hw/versatile_pci.c |    2 +-
 50 files changed, 3116 insertions(+), 521 deletions(-)
 create mode 100644 hw/acpi_ich9.c
 create mode 100644 hw/acpi_ich9.h
 create mode 100644 hw/pam.c
 create mode 100644 hw/pam.h
 create mode 100644 hw/pc_q35.c
 create mode 100644 hw/pci_p2pbr.c
 create mode 100644 hw/pci_p2pbr.h
 create mode 100644 hw/q35.c
 create mode 100644 hw/q35.h
 create mode 100644 hw/q35_smbus.c

^ permalink raw reply	[flat|nested] 72+ messages in thread
* Re: [Qemu-devel] [PATCH 00/26] q35 chipset support for native pci express support
@ 2011-04-20 23:41 Adnan Khaleel
  2011-04-21  2:07 ` [Qemu-devel] [PATCH 00/26] q35 chipset support for native pci?express support Isaku Yamahata
  0 siblings, 1 reply; 72+ messages in thread
From: Adnan Khaleel @ 2011-04-20 23:41 UTC (permalink / raw)
  To: Isaku Yamahata, Hu Tao; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 2177 bytes --]

Something is still wrong,


I get the following errors now:


:

error: cannot unpack fffd440d2ca664a03ee83eabc00107eaf74d7af4 from /users/akhaleel/akhaleel/MergeSpace/qemu_0.14_q35/qemu/.git/objects/pack/pack-c0c6d1b7fc8ae79abf99bfb6a402b50e2ec98557.pack
error: Unable to find ad620c29c2da573e3a5f13f5b1eb2694fee64cfb under http://people.valinux.co.jp/~yamahata/qemu/q35/20110316/qemu/
Cannot obtain needed none ad620c29c2da573e3a5f13f5b1eb2694fee64cfb
while processing commit 0000000000000000000000000000000000000000.
rm: cannot remove directory `/users/akhaleel/akhaleel/MergeSpace/qemu_0.14_q35/qemu/.git/clone-tmp': Directory not empty


Adnan

  _____  

From: Isaku Yamahata [mailto:yamahata@valinux.co.jp]
To: Hu Tao [mailto:hutao@cn.fujitsu.com], Adnan Khaleel [mailto:adnan@khaleel.us]
Cc: qemu-devel@nongnu.org
Sent: Wed, 20 Apr 2011 17:46:44 -0500
Subject: Re: [Qemu-devel] [PATCH 00/26] q35 chipset support for native pci express support

I forgot to changet its HEAD. Now it's fixed.
  So please change the branch manually or clone the repo again.
  
  On Tue, Apr 19, 2011 at 04:58:32PM +0800, Hu Tao wrote:
  > On Tue, Apr 19, 2011 at 05:51:27PM +0900, Isaku Yamahata wrote:
  > > On Tue, Apr 19, 2011 at 04:28:01PM +0800, Hu Tao wrote:
  > > > On Wed, Mar 16, 2011 at 06:29:11PM +0900, Isaku Yamahata wrote:
  > > > > This patch series adds basic q35 chipset support for native pci express
  > > > > support. Some bios related patches are still needed.
  > > > > For those who want to try it, the following repo is avaiable.
  > > > > (vgabios doesn't need patches, so use the upstream one)
  > > > > 
  > > > > git clone http://people.valinux.co.jp/~yamahata/qemu/q35/20110316/qemu
  > > > > git clone http://people.valinux.co.jp/~yamahata/qemu/q35/20110316/seabios
  > > > 
  > > > Hi,
  > > > 
  > > > When I visit the links, the pages say 'You dont have permission'. Could
  > > > you make these git-repos avaiable again?  Thanks in advance.
  > > 
  > > The link is not for human-reading. Just issue the git command.
  > 
  > Done. Thanks:)
  > 
  > > -- 
  > > yamahata
  > 
  
  -- 
  yamahata
    

[-- Attachment #2: Type: text/html, Size: 3151 bytes --]

^ permalink raw reply	[flat|nested] 72+ messages in thread
* Re: [Qemu-devel] [PATCH 00/26] q35 chipset support for native pci?express support
@ 2011-04-21 16:12 Adnan Khaleel
  2011-04-21 16:38 ` [Qemu-devel] [PATCH 00/26] q35 chipset support for native?pci?express support Isaku Yamahata
  0 siblings, 1 reply; 72+ messages in thread
From: Adnan Khaleel @ 2011-04-21 16:12 UTC (permalink / raw)
  To: Isaku Yamahata; +Cc: Hu Tao, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 4351 bytes --]

I still get the same error:



akhaleel@depot5 qemu_0.14_q35 $ git clone http://people.valinux.co.jp/~yamahata/qemu/q35/20110316/qemu
Getting alternates list for http://people.valinux.co.jp/~yamahata/qemu/q35/20110316/qemu/
Getting pack list for http://people.valinux.co.jp/~yamahata/qemu/q35/20110316/qemu/
Getting index for pack c0c6d1b7fc8ae79abf99bfb6a402b50e2ec98557
Getting pack c0c6d1b7fc8ae79abf99bfb6a402b50e2ec98557
 which contains ad620c29c2da573e3a5f13f5b1eb2694fee64cfb
error: cannot unpack 000198da6f46c240e46c562caf57b14268d27597 from /users/akhaleel/akhaleel/MergeSpace/qemu_0.14_q35/qemu/.git/objects/pack/pack-c0c6d1b7fc8ae79abf99bfb6a402b50e2ec98557.pack
:
:

error: cannot unpack fffd440d2ca664a03ee83eabc00107eaf74d7af4 from /users/akhaleel/akhaleel/MergeSpace/qemu_0.14_q35/qemu/.git/objects/pack/pack-c0c6d1b7fc8ae79abf99bfb6a402b50e2ec98557.pack
error: Unable to find ad620c29c2da573e3a5f13f5b1eb2694fee64cfb under http://people.valinux.co.jp/~yamahata/qemu/q35/20110316/qemu/
Cannot obtain needed none ad620c29c2da573e3a5f13f5b1eb2694fee64cfb
while processing commit 0000000000000000000000000000000000000000.
rm: cannot remove directory `/users/akhaleel/akhaleel/MergeSpace/qemu_0.14_q35/qemu/.git/clone-tmp': Directory not empty

  _____  

From: Isaku Yamahata [mailto:yamahata@valinux.co.jp]
To: Adnan Khaleel [mailto:adnan@khaleel.us]
Cc: Hu Tao [mailto:hutao@cn.fujitsu.com], qemu-devel@nongnu.org
Sent: Wed, 20 Apr 2011 21:07:46 -0500
Subject: Re: [Qemu-devel] [PATCH 00/26] q35 chipset support for native pci?express support

Okay. Can you please try git clone again?
  
  On Wed, Apr 20, 2011 at 06:41:56PM -0500, Adnan Khaleel wrote:
  > Something is still wrong,
  > 
  > I get the following errors now:
  > 
  > :
  > error: cannot unpack fffd440d2ca664a03ee83eabc00107eaf74d7af4 from /users/
  > akhaleel/akhaleel/MergeSpace/qemu_0.14_q35/qemu/.git/objects/pack/
  > pack-c0c6d1b7fc8ae79abf99bfb6a402b50e2ec98557.pack
  > error: Unable to find ad620c29c2da573e3a5f13f5b1eb2694fee64cfb under http://
  > people.valinux.co.jp/~yamahata/qemu/q35/20110316/qemu/
  > Cannot obtain needed none ad620c29c2da573e3a5f13f5b1eb2694fee64cfb
  > while processing commit 0000000000000000000000000000000000000000.
  > rm: cannot remove directory `/users/akhaleel/akhaleel/MergeSpace/qemu_0.14_q35/
  > qemu/.git/clone-tmp': Directory not empty
  > 
  > Adnan
  > 
  > 
  >     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  >     From: Isaku Yamahata [mailto:yamahata@valinux.co.jp]
  >     To: Hu Tao [mailto:hutao@cn.fujitsu.com], Adnan Khaleel
  >     [mailto:adnan@khaleel.us]
  >     Cc: qemu-devel@nongnu.org
  >     Sent: Wed, 20 Apr 2011 17:46:44 -0500
  >     Subject: Re: [Qemu-devel] [PATCH 00/26] q35 chipset support for native pci
  >     express support
  > 
  >     I forgot to changet its HEAD. Now it's fixed.
  >     So please change the branch manually or clone the repo again.
  > 
  >     On Tue, Apr 19, 2011 at 04:58:32PM +0800, Hu Tao wrote:
  >     > On Tue, Apr 19, 2011 at 05:51:27PM +0900, Isaku Yamahata wrote:
  >     > > On Tue, Apr 19, 2011 at 04:28:01PM +0800, Hu Tao wrote:
  >     > > > On Wed, Mar 16, 2011 at 06:29:11PM +0900, Isaku Yamahata wrote:
  >     > > > > This patch series adds basic q35 chipset support for native pci
  >     express
  >     > > > > support. Some bios related patches are still needed.
  >     > > > > For those who want to try it, the following repo is avaiable.
  >     > > > > (vgabios doesn't need patches, so use the upstream one)
  >     > > > >
  >     > > > > git clone http://people.valinux.co.jp/~yamahata/qemu/q35/20110316/
  >     qemu
  >     > > > > git clone http://people.valinux.co.jp/~yamahata/qemu/q35/20110316/
  >     seabios
  >     > > >
  >     > > > Hi,
  >     > > >
  >     > > > When I visit the links, the pages say 'You dont have permission'.
  >     Could
  >     > > > you make these git-repos avaiable again? Thanks in advance.
  >     > >
  >     > > The link is not for human-reading. Just issue the git command.
  >     >
  >     > Done. Thanks:)
  >     >
  >     > > --
  >     > > yamahata
  >     >
  > 
  >     --
  >     yamahata
  > 
  
  -- 
  yamahata
    

[-- Attachment #2: Type: text/html, Size: 5786 bytes --]

^ permalink raw reply	[flat|nested] 72+ messages in thread
* Re: [Qemu-devel] [PATCH 00/26] q35 chipset support for native?pci?express support
@ 2011-04-21 16:52 Adnan Khaleel
  0 siblings, 0 replies; 72+ messages in thread
From: Adnan Khaleel @ 2011-04-21 16:52 UTC (permalink / raw)
  To: Isaku Yamahata; +Cc: Hu Tao, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 5442 bytes --]

Yes, it was a git version conflict.  Thanks.


Adnan
  _____  

From: Isaku Yamahata [mailto:yamahata@valinux.co.jp]
To: Adnan Khaleel [mailto:adnan@khaleel.us]
Cc: Hu Tao [mailto:hutao@cn.fujitsu.com], qemu-devel@nongnu.org
Sent: Thu, 21 Apr 2011 11:38:36 -0500
Subject: Re: [Qemu-devel] [PATCH 00/26] q35 chipset support for native?pci?express support

git clone works for me. Hmmm git installation issue?
  My git is 
  $ git --version
  git version 1.7.1.1
  
  thanks,
  
  On Thu, Apr 21, 2011 at 11:12:37AM -0500, Adnan Khaleel wrote:
  > I still get the same error:
  > 
  > akhaleel@depot5 qemu_0.14_q35 $ git clone http://people.valinux.co.jp/~yamahata
  > /qemu/q35/20110316/qemu
  > Getting alternates list for http://people.valinux.co.jp/~yamahata/qemu/q35/
  > 20110316/qemu/
  > Getting pack list for http://people.valinux.co.jp/~yamahata/qemu/q35/20110316/
  > qemu/
  > Getting index for pack c0c6d1b7fc8ae79abf99bfb6a402b50e2ec98557
  > Getting pack c0c6d1b7fc8ae79abf99bfb6a402b50e2ec98557
  >  which contains ad620c29c2da573e3a5f13f5b1eb2694fee64cfb
  > error: cannot unpack 000198da6f46c240e46c562caf57b14268d27597 from /users/
  > akhaleel/akhaleel/MergeSpace/qemu_0.14_q35/qemu/.git/objects/pack/
  > pack-c0c6d1b7fc8ae79abf99bfb6a402b50e2ec98557.pack
  > :
  > :
  > error: cannot unpack fffd440d2ca664a03ee83eabc00107eaf74d7af4 from /users/
  > akhaleel/akhaleel/MergeSpace/qemu_0.14_q35/qemu/.git/objects/pack/
  > pack-c0c6d1b7fc8ae79abf99bfb6a402b50e2ec98557.pack
  > error: Unable to find ad620c29c2da573e3a5f13f5b1eb2694fee64cfb under http://
  > people.valinux.co.jp/~yamahata/qemu/q35/20110316/qemu/
  > Cannot obtain needed none ad620c29c2da573e3a5f13f5b1eb2694fee64cfb
  > while processing commit 0000000000000000000000000000000000000000.
  > rm: cannot remove directory `/users/akhaleel/akhaleel/MergeSpace/qemu_0.14_q35/
  > qemu/.git/clone-tmp': Directory not empty
  > 
  > 
  >     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  >     From: Isaku Yamahata [mailto:yamahata@valinux.co.jp]
  >     To: Adnan Khaleel [mailto:adnan@khaleel.us]
  >     Cc: Hu Tao [mailto:hutao@cn.fujitsu.com], qemu-devel@nongnu.org
  >     Sent: Wed, 20 Apr 2011 21:07:46 -0500
  >     Subject: Re: [Qemu-devel] [PATCH 00/26] q35 chipset support for native pci?
  >     express support
  > 
  >     Okay. Can you please try git clone again?
  > 
  >     On Wed, Apr 20, 2011 at 06:41:56PM -0500, Adnan Khaleel wrote:
  >     > Something is still wrong,
  >     >
  >     > I get the following errors now:
  >     >
  >     > :
  >     > error: cannot unpack fffd440d2ca664a03ee83eabc00107eaf74d7af4 from /users
  >     /
  >     > akhaleel/akhaleel/MergeSpace/qemu_0.14_q35/qemu/.git/objects/pack/
  >     > pack-c0c6d1b7fc8ae79abf99bfb6a402b50e2ec98557.pack
  >     > error: Unable to find ad620c29c2da573e3a5f13f5b1eb2694fee64cfb under
  >     http://
  >     > people.valinux.co.jp/~yamahata/qemu/q35/20110316/qemu/
  >     > Cannot obtain needed none ad620c29c2da573e3a5f13f5b1eb2694fee64cfb
  >     > while processing commit 0000000000000000000000000000000000000000.
  >     > rm: cannot remove directory `/users/akhaleel/akhaleel/MergeSpace/
  >     qemu_0.14_q35/
  >     > qemu/.git/clone-tmp': Directory not empty
  >     >
  >     > Adnan
  >     >
  >     >
  >     > ?????????????????????????????????????
  >     > From: Isaku Yamahata [mailto:yamahata@valinux.co.jp]
  >     > To: Hu Tao [mailto:hutao@cn.fujitsu.com], Adnan Khaleel
  >     > [mailto:adnan@khaleel.us]
  >     > Cc: qemu-devel@nongnu.org
  >     > Sent: Wed, 20 Apr 2011 17:46:44 -0500
  >     > Subject: Re: [Qemu-devel] [PATCH 00/26] q35 chipset support for native
  >     pci
  >     > express support
  >     >
  >     > I forgot to changet its HEAD. Now it's fixed.
  >     > So please change the branch manually or clone the repo again.
  >     >
  >     > On Tue, Apr 19, 2011 at 04:58:32PM +0800, Hu Tao wrote:
  >     > > On Tue, Apr 19, 2011 at 05:51:27PM +0900, Isaku Yamahata wrote:
  >     > > > On Tue, Apr 19, 2011 at 04:28:01PM +0800, Hu Tao wrote:
  >     > > > > On Wed, Mar 16, 2011 at 06:29:11PM +0900, Isaku Yamahata wrote:
  >     > > > > > This patch series adds basic q35 chipset support for native pci
  >     > express
  >     > > > > > support. Some bios related patches are still needed.
  >     > > > > > For those who want to try it, the following repo is avaiable.
  >     > > > > > (vgabios doesn't need patches, so use the upstream one)
  >     > > > > >
  >     > > > > > git clone http://people.valinux.co.jp/~yamahata/qemu/q35/20110316
  >     /
  >     > qemu
  >     > > > > > git clone http://people.valinux.co.jp/~yamahata/qemu/q35/20110316
  >     /
  >     > seabios
  >     > > > >
  >     > > > > Hi,
  >     > > > >
  >     > > > > When I visit the links, the pages say 'You dont have permission'.
  >     > Could
  >     > > > > you make these git-repos avaiable again? Thanks in advance.
  >     > > >
  >     > > > The link is not for human-reading. Just issue the git command.
  >     > >
  >     > > Done. Thanks:)
  >     > >
  >     > > > --
  >     > > > yamahata
  >     > >
  >     >
  >     > --
  >     > yamahata
  >     >
  > 
  >     --
  >     yamahata
  > 
  
  -- 
  yamahata
    

[-- Attachment #2: Type: text/html, Size: 7604 bytes --]

^ permalink raw reply	[flat|nested] 72+ messages in thread
* Re: [Qemu-devel] [PATCH 00/26] q35 chipset support for native pci?express support
@ 2011-05-10 16:58 Adnan Khaleel
  0 siblings, 0 replies; 72+ messages in thread
From: Adnan Khaleel @ 2011-05-10 16:58 UTC (permalink / raw)
  To: adnan, yamahata, qemu-devel; +Cc: Hu Tao

[-- Attachment #1: Type: text/plain, Size: 5528 bytes --]

I found one problem in the bios config that was preventing the BIOS from seeing the MBR. 
The AHCI support was not enabled. To fix this 
change seabios/.config


CONFIG_AHCI=y


The system now loads the boot loader and does some device initialization. However, the boot gets stuck when the OS partition cannot be seen and I get a message saying 


"Waiting for device /dev/disk/by-uuid/xxxx to appear: ............ Could not find /dev/disk/by-uuid/xxxx"


Any ideas whats happening here?


AK
  _____  

From: Adnan Khaleel [mailto:adnan@khaleel.us]
To: adnan@khaleel.us
Cc: Hu Tao [mailto:hutao@cn.fujitsu.com]
Sent: Tue, 10 May 2011 11:43:33 -0500
Subject: Re: [Qemu-devel] [PATCH 00/26] q35 chipset support for native pci?express support

                Hi Hu,


Have you managed to get this working? 


Adnan
  _____  

From: Adnan Khaleel [mailto:adnan@khaleel.us]
To: Isaku Yamahata [mailto:yamahata@valinux.co.jp]
Cc: Hu Tao [mailto:hutao@cn.fujitsu.com], qemu-devel@nongnu.org
Sent: Thu, 21 Apr 2011 11:12:37 -0500
Subject: Re: [Qemu-devel] [PATCH 00/26] q35 chipset support for native pci?express support

                I still get the same error:



akhaleel@depot5 qemu_0.14_q35 $ git clone http://people.valinux.co.jp/~yamahata/qemu/q35/20110316/qemu
Getting alternates list for http://people.valinux.co.jp/~yamahata/qemu/q35/20110316/qemu/
Getting pack list for http://people.valinux.co.jp/~yamahata/qemu/q35/20110316/qemu/
Getting index for pack c0c6d1b7fc8ae79abf99bfb6a402b50e2ec98557
Getting pack c0c6d1b7fc8ae79abf99bfb6a402b50e2ec98557
 which contains ad620c29c2da573e3a5f13f5b1eb2694fee64cfb
error: cannot unpack 000198da6f46c240e46c562caf57b14268d27597 from /users/akhaleel/akhaleel/MergeSpace/qemu_0.14_q35/qemu/.git/objects/pack/pack-c0c6d1b7fc8ae79abf99bfb6a402b50e2ec98557.pack
:
:

error: cannot unpack fffd440d2ca664a03ee83eabc00107eaf74d7af4 from /users/akhaleel/akhaleel/MergeSpace/qemu_0.14_q35/qemu/.git/objects/pack/pack-c0c6d1b7fc8ae79abf99bfb6a402b50e2ec98557.pack
error: Unable to find ad620c29c2da573e3a5f13f5b1eb2694fee64cfb under http://people.valinux.co.jp/~yamahata/qemu/q35/20110316/qemu/
Cannot obtain needed none ad620c29c2da573e3a5f13f5b1eb2694fee64cfb
while processing commit 0000000000000000000000000000000000000000.
rm: cannot remove directory `/users/akhaleel/akhaleel/MergeSpace/qemu_0.14_q35/qemu/.git/clone-tmp': Directory not empty

  _____  

From: Isaku Yamahata [mailto:yamahata@valinux.co.jp]
To: Adnan Khaleel [mailto:adnan@khaleel.us]
Cc: Hu Tao [mailto:hutao@cn.fujitsu.com], qemu-devel@nongnu.org
Sent: Wed, 20 Apr 2011 21:07:46 -0500
Subject: Re: [Qemu-devel] [PATCH 00/26] q35 chipset support for native pci?express support

Okay. Can you please try git clone again?
  
  On Wed, Apr 20, 2011 at 06:41:56PM -0500, Adnan Khaleel wrote:
  > Something is still wrong,
  > 
  > I get the following errors now:
  > 
  > :
  > error: cannot unpack fffd440d2ca664a03ee83eabc00107eaf74d7af4 from /users/
  > akhaleel/akhaleel/MergeSpace/qemu_0.14_q35/qemu/.git/objects/pack/
  > pack-c0c6d1b7fc8ae79abf99bfb6a402b50e2ec98557.pack
  > error: Unable to find ad620c29c2da573e3a5f13f5b1eb2694fee64cfb under http://
  > people.valinux.co.jp/~yamahata/qemu/q35/20110316/qemu/
  > Cannot obtain needed none ad620c29c2da573e3a5f13f5b1eb2694fee64cfb
  > while processing commit 0000000000000000000000000000000000000000.
  > rm: cannot remove directory `/users/akhaleel/akhaleel/MergeSpace/qemu_0.14_q35/
  > qemu/.git/clone-tmp': Directory not empty
  > 
  > Adnan
  > 
  > 
  >     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  >     From: Isaku Yamahata [mailto:yamahata@valinux.co.jp]
  >     To: Hu Tao [mailto:hutao@cn.fujitsu.com], Adnan Khaleel
  >     [mailto:adnan@khaleel.us]
  >     Cc: qemu-devel@nongnu.org
  >     Sent: Wed, 20 Apr 2011 17:46:44 -0500
  >     Subject: Re: [Qemu-devel] [PATCH 00/26] q35 chipset support for native pci
  >     express support
  > 
  >     I forgot to changet its HEAD. Now it's fixed.
  >     So please change the branch manually or clone the repo again.
  > 
  >     On Tue, Apr 19, 2011 at 04:58:32PM +0800, Hu Tao wrote:
  >     > On Tue, Apr 19, 2011 at 05:51:27PM +0900, Isaku Yamahata wrote:
  >     > > On Tue, Apr 19, 2011 at 04:28:01PM +0800, Hu Tao wrote:
  >     > > > On Wed, Mar 16, 2011 at 06:29:11PM +0900, Isaku Yamahata wrote:
  >     > > > > This patch series adds basic q35 chipset support for native pci
  >     express
  >     > > > > support. Some bios related patches are still needed.
  >     > > > > For those who want to try it, the following repo is avaiable.
  >     > > > > (vgabios doesn't need patches, so use the upstream one)
  >     > > > >
  >     > > > > git clone http://people.valinux.co.jp/~yamahata/qemu/q35/20110316/
  >     qemu
  >     > > > > git clone http://people.valinux.co.jp/~yamahata/qemu/q35/20110316/
  >     seabios
  >     > > >
  >     > > > Hi,
  >     > > >
  >     > > > When I visit the links, the pages say 'You dont have permission'.
  >     Could
  >     > > > you make these git-repos avaiable again? Thanks in advance.
  >     > >
  >     > > The link is not for human-reading. Just issue the git command.
  >     >
  >     > Done. Thanks:)
  >     >
  >     > > --
  >     > > yamahata
  >     >
  > 
  >     --
  >     yamahata
  > 
  
  -- 
  yamahata
        

[-- Attachment #2: Type: text/html, Size: 8156 bytes --]

^ permalink raw reply	[flat|nested] 72+ messages in thread
* Re: [Qemu-devel] [PATCH 00/26] q35 chipset support for native pci express support
@ 2011-05-16 21:55 Adnan Khaleel
  2011-05-17  7:15 ` Jan Kiszka
  0 siblings, 1 reply; 72+ messages in thread
From: Adnan Khaleel @ 2011-05-16 21:55 UTC (permalink / raw)
  To: qemu-devel; +Cc: Isaku Yamahata

[-- Attachment #1: Type: text/plain, Size: 1914 bytes --]

I finally got this work after I realised that the AHCI driver was not being loaded in my disk image and that ACHI was not being enabled in the Seabios .config file.
This is really good work Yamahata, thanks.


As far as I can tell, everything works like the stock Qemu 0.14 except networking. The guest OS sees the network device and initialises it but I think the Qemu DHCP server/firewall never gets back, since the network device doesn't even get a 10.0.2.15 ip address during bootup and the guest dhcp client never gets an ip address, 


eth0   device: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 03)
eth0   Starting DHCP4 client. . . . . . . .
eth0   DHCP4 continues in background 
eth0   device: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 03)
eth0   DHCP4 client (dhcpcd) is running
eth0   . . . but is still waiting for data
eth0   interface could not be set up until now


So doing an ifconfig later on just shows


eth0   Link encap:Ethernet  HWaddr 52:54:00:12:34:56
         UP BROADCAST MULTICAST  MTU:1500  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:0 (0.0 b)   TX bytes:0 (0.0 b)



lo      Link encap:Local loopback  
         inet addr:127.0.0.1  Mask:255.0.0.0
         inet6 addr: ::1/128 Scope:Host
         UP LOOPBACK RUNING  MTU:16436  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:0 (0.0 b)   TX bytes:0 (0.0 b)


I'm going to start a separate thread to see what the possible cause might be and what might be the best way to debug this. Do you have any idea if this q35 chipset going to be committed to Qemu upstream?


Thanks


AK

[-- Attachment #2: Type: text/html, Size: 4076 bytes --]

^ permalink raw reply	[flat|nested] 72+ messages in thread

end of thread, other threads:[~2011-05-26  9:00 UTC | newest]

Thread overview: 72+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-16  9:29 [Qemu-devel] [PATCH 00/26] q35 chipset support for native pci express support Isaku Yamahata
2011-03-16  9:29 ` [Qemu-devel] [PATCH 01/26] pci: replace the magic, 256, for the maximum of slot Isaku Yamahata
2011-03-16  9:29 ` [Qemu-devel] [PATCH 02/26] pci: add opaque argument to pci_map_irq_fn Isaku Yamahata
2011-03-17  5:36   ` [Qemu-devel] " Michael S. Tsirkin
2011-03-16  9:29 ` [Qemu-devel] [PATCH 03/26] pci: introduce pci_swizzle_map_irq_fn() for standardized interrupt pin swizzle Isaku Yamahata
2011-03-17 14:43   ` [Qemu-devel] " Michael S. Tsirkin
2011-03-17 15:29     ` Isaku Yamahata
2011-03-16  9:29 ` [Qemu-devel] [PATCH 04/26] pci: add accessor function to get irq levels Isaku Yamahata
2011-03-17  5:29   ` [Qemu-devel] " Michael S. Tsirkin
2011-03-17  6:05     ` Isaku Yamahata
2011-03-17  8:19       ` Michael S. Tsirkin
2011-03-16  9:29 ` [Qemu-devel] [PATCH 05/26] piix_pci: eliminate PIIX3State::pci_irq_levels Isaku Yamahata
2011-03-16  9:29 ` [Qemu-devel] [PATCH 06/26] pci_bridge: add helper function to convert PCIBridge into PCIDevice Isaku Yamahata
2011-03-16  9:29 ` [Qemu-devel] [PATCH 07/26] pci/p2pbr: generic pci p2p bridge Isaku Yamahata
2011-03-16 21:34   ` [Qemu-devel] " Michael S. Tsirkin
2011-03-17  2:08     ` Isaku Yamahata
2011-03-17  5:17       ` Michael S. Tsirkin
2011-03-17  5:26         ` Isaku Yamahata
2011-03-17  5:31           ` Michael S. Tsirkin
2011-03-16  9:29 ` [Qemu-devel] [PATCH 08/26] apb_pci: simplify apb_pci.c by using pci_p2pbr Isaku Yamahata
2011-03-19  8:14   ` [Qemu-devel] " Blue Swirl
2011-03-16  9:29 ` [Qemu-devel] [PATCH 09/26] dec_pci: simplify dec_pci.c " Isaku Yamahata
2011-03-19  8:13   ` [Qemu-devel] " Blue Swirl
2011-03-16  9:29 ` [Qemu-devel] [PATCH 10/26] ide/ahci/ich: use qdev.reset Isaku Yamahata
2011-03-16  9:29 ` [Qemu-devel] [PATCH 11/26] ahci: add ide device initialization helper Isaku Yamahata
2011-03-16  9:29 ` [Qemu-devel] [PATCH 12/26] usb/uhci: generalize initialization Isaku Yamahata
2011-03-16  9:29 ` [Qemu-devel] [PATCH 13/26] usb/uhci: add ich9 usb uhci id's device Isaku Yamahata
2011-03-19  8:15   ` Blue Swirl
2011-03-16  9:29 ` [Qemu-devel] [PATCH 14/26] ide: consolidate drive_get(IF_IDE) Isaku Yamahata
2011-03-16  9:29 ` [Qemu-devel] [PATCH 15/26] smbus_eeprom: consolidate smbus eeprom creation Isaku Yamahata
2011-04-01 20:36   ` Aurelien Jarno
2011-03-16  9:29 ` [Qemu-devel] [PATCH 16/26] pc, pc_piix: split out allocating isa irqs Isaku Yamahata
2011-03-16  9:29 ` [Qemu-devel] [PATCH 17/26] pc, pc_piix: split out pc nic initialization Isaku Yamahata
2011-03-16  9:29 ` [Qemu-devel] [PATCH 18/26] ioapic: move ioapic_init() from pc_piix.c to pc.c Isaku Yamahata
2011-03-16  9:29 ` [Qemu-devel] [PATCH 19/26] pc/piix_pci: factor out smram/pam logic Isaku Yamahata
2011-03-16  9:29 ` [Qemu-devel] [PATCH 20/26] pc, i440fx: simply i440fx initialization Isaku Yamahata
2011-03-16  9:29 ` [Qemu-devel] [PATCH 21/26] acpi, acpi_piix: factor out PM_TMR logic Isaku Yamahata
2011-03-19  8:18   ` Blue Swirl
2011-03-16  9:29 ` [Qemu-devel] [PATCH 22/26] acpi, acpi_piix: factor out PM1a EVT logic Isaku Yamahata
2011-03-19  8:21   ` Blue Swirl
2011-03-16  9:29 ` [Qemu-devel] [PATCH 23/26] acpi, acpi_piix: factor out PM1_CNT logic Isaku Yamahata
2011-03-16  9:29 ` [Qemu-devel] [PATCH 24/26] acpi, acpi_piix: factor out GPE logic Isaku Yamahata
2011-04-17 13:17   ` Avi Kivity
2011-04-17 13:50     ` Isaku Yamahata
2011-04-17 15:53       ` Avi Kivity
2011-04-18  7:47         ` Isaku Yamahata
2011-04-18  8:22           ` Avi Kivity
2011-04-18 13:45             ` Isaku Yamahata
2011-03-16  9:29 ` [Qemu-devel] [PATCH 25/26] pci_ids: add intel 82801BA pci-to-pci bridge id and PCI_CLASS_SERIAL_SMBUS Isaku Yamahata
2011-03-16  9:29 ` [Qemu-devel] [PATCH 26/26] pc q35 based chipset emulator Isaku Yamahata
2011-03-16 10:12 ` [Qemu-devel] ACPI table loading [was: q35 chipset support for native pci express support] Michael Tokarev
2011-03-16 12:10   ` Isaku Yamahata
2011-03-16 13:47     ` [Qemu-devel] RFC: ACPI table loading Michael Tokarev
2011-03-17  3:35       ` Isaku Yamahata
2011-04-19  8:28 ` [Qemu-devel] [PATCH 00/26] q35 chipset support for native pci express support Hu Tao
2011-04-19  8:51   ` Isaku Yamahata
2011-04-19  8:58     ` Hu Tao
2011-04-20 22:46       ` Isaku Yamahata
  -- strict thread matches above, loose matches on Subject: below --
2011-04-20 23:41 Adnan Khaleel
2011-04-21  2:07 ` [Qemu-devel] [PATCH 00/26] q35 chipset support for native pci?express support Isaku Yamahata
2011-04-21  2:27   ` Gui Jianfeng
2011-04-21 16:12 Adnan Khaleel
2011-04-21 16:38 ` [Qemu-devel] [PATCH 00/26] q35 chipset support for native?pci?express support Isaku Yamahata
2011-04-21 16:52 Adnan Khaleel
2011-05-10 16:58 [Qemu-devel] [PATCH 00/26] q35 chipset support for native pci?express support Adnan Khaleel
2011-05-16 21:55 [Qemu-devel] [PATCH 00/26] q35 chipset support for native pci express support Adnan Khaleel
2011-05-17  7:15 ` Jan Kiszka
2011-05-17 13:57   ` Isaku Yamahata
2011-05-17 14:21     ` Jan Kiszka
2011-05-18  2:38       ` Isaku Yamahata
2011-05-25  7:15   ` Jan Kiszka
2011-05-26  9:00     ` Isaku Yamahata

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).