qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PULL 0/4] q35: a bunch of little tweaks & fixes.
@ 2013-01-11  8:52 Gerd Hoffmann
  2013-01-11  8:52 ` [Qemu-devel] [PATCH 1/4] q35: add ich9 intel hda controller Gerd Hoffmann
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Gerd Hoffmann @ 2013-01-11  8:52 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann

  Hi,

The biggest change is the machine type renaming patch.

please pull,
  Gerd

The following changes since commit a6308bc2224db238e72c570482717b68246a7ce0:

  Merge remote-tracking branch 'kraxel/build.1' into staging (2013-01-10 13:26:31 -0600)

are available in the git repository at:

  git://git.kraxel.org/qemu q35.1

Gerd Hoffmann (3):
      q35: add ich9 intel hda controller
      q35: document chipset devices
      pc: rename machine types

Laszlo Ersek (1):
      Makefile: install the "acpi-dsdt.aml" and "q35-acpi-dsdt.aml" blobs too

 Makefile             |    1 +
 docs/q35-chipset.cfg |  129 ++++++++++++++++++++++++++++++++++++++++++++++++++
 hw/intel-hda.c       |   41 +++++++++++++---
 hw/pc_piix.c         |    8 ++--
 hw/pc_q35.c          |    4 +-
 5 files changed, 170 insertions(+), 13 deletions(-)
 create mode 100644 docs/q35-chipset.cfg

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

* [Qemu-devel] [PATCH 1/4] q35: add ich9 intel hda controller
  2013-01-11  8:52 [Qemu-devel] [PULL 0/4] q35: a bunch of little tweaks & fixes Gerd Hoffmann
@ 2013-01-11  8:52 ` Gerd Hoffmann
  2013-01-11  8:52 ` [Qemu-devel] [PATCH 2/4] q35: document chipset devices Gerd Hoffmann
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: Gerd Hoffmann @ 2013-01-11  8:52 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/intel-hda.c |   41 ++++++++++++++++++++++++++++++++++-------
 1 files changed, 34 insertions(+), 7 deletions(-)

diff --git a/hw/intel-hda.c b/hw/intel-hda.c
index 98ff936..eed1d38 100644
--- a/hw/intel-hda.c
+++ b/hw/intel-hda.c
@@ -1232,7 +1232,7 @@ static Property intel_hda_properties[] = {
     DEFINE_PROP_END_OF_LIST(),
 };
 
-static void intel_hda_class_init(ObjectClass *klass, void *data)
+static void intel_hda_class_init_common(ObjectClass *klass)
 {
     DeviceClass *dc = DEVICE_CLASS(klass);
     PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
@@ -1240,20 +1240,46 @@ static void intel_hda_class_init(ObjectClass *klass, void *data)
     k->init = intel_hda_init;
     k->exit = intel_hda_exit;
     k->vendor_id = PCI_VENDOR_ID_INTEL;
-    k->device_id = 0x2668;
-    k->revision = 1;
     k->class_id = PCI_CLASS_MULTIMEDIA_HD_AUDIO;
-    dc->desc = "Intel HD Audio Controller";
     dc->reset = intel_hda_reset;
     dc->vmsd = &vmstate_intel_hda;
     dc->props = intel_hda_properties;
 }
 
-static TypeInfo intel_hda_info = {
+static void intel_hda_class_init_ich6(ObjectClass *klass, void *data)
+{
+    DeviceClass *dc = DEVICE_CLASS(klass);
+    PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
+
+    intel_hda_class_init_common(klass);
+    k->device_id = 0x2668;
+    k->revision = 1;
+    dc->desc = "Intel HD Audio Controller (ich6)";
+}
+
+static void intel_hda_class_init_ich9(ObjectClass *klass, void *data)
+{
+    DeviceClass *dc = DEVICE_CLASS(klass);
+    PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
+
+    intel_hda_class_init_common(klass);
+    k->device_id = 0x293e;
+    k->revision = 3;
+    dc->desc = "Intel HD Audio Controller (ich9)";
+}
+
+static TypeInfo intel_hda_info_ich6 = {
     .name          = "intel-hda",
     .parent        = TYPE_PCI_DEVICE,
     .instance_size = sizeof(IntelHDAState),
-    .class_init    = intel_hda_class_init,
+    .class_init    = intel_hda_class_init_ich6,
+};
+
+static TypeInfo intel_hda_info_ich9 = {
+    .name          = "ich9-intel-hda",
+    .parent        = TYPE_PCI_DEVICE,
+    .instance_size = sizeof(IntelHDAState),
+    .class_init    = intel_hda_class_init_ich9,
 };
 
 static void hda_codec_device_class_init(ObjectClass *klass, void *data)
@@ -1277,7 +1303,8 @@ static TypeInfo hda_codec_device_type_info = {
 static void intel_hda_register_types(void)
 {
     type_register_static(&hda_codec_bus_info);
-    type_register_static(&intel_hda_info);
+    type_register_static(&intel_hda_info_ich6);
+    type_register_static(&intel_hda_info_ich9);
     type_register_static(&hda_codec_device_type_info);
 }
 
-- 
1.7.1

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

* [Qemu-devel] [PATCH 2/4] q35: document chipset devices
  2013-01-11  8:52 [Qemu-devel] [PULL 0/4] q35: a bunch of little tweaks & fixes Gerd Hoffmann
  2013-01-11  8:52 ` [Qemu-devel] [PATCH 1/4] q35: add ich9 intel hda controller Gerd Hoffmann
@ 2013-01-11  8:52 ` Gerd Hoffmann
  2013-01-11  8:52 ` [Qemu-devel] [PATCH 3/4] pc: rename machine types Gerd Hoffmann
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: Gerd Hoffmann @ 2013-01-11  8:52 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 docs/q35-chipset.cfg |  129 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 129 insertions(+), 0 deletions(-)
 create mode 100644 docs/q35-chipset.cfg

diff --git a/docs/q35-chipset.cfg b/docs/q35-chipset.cfg
new file mode 100644
index 0000000..1b6efc0
--- /dev/null
+++ b/docs/q35-chipset.cfg
@@ -0,0 +1,129 @@
+################################################################
+#
+# qemu -M q35 creates a bare machine with just the very essential
+# chipset devices being present:
+#
+#     00.0 - Host bridge
+#     1f.0 - ISA bridge / LPC
+#     1f.2 - SATA (AHCI) controller
+#     1f.3 - SMBus controller
+#
+# This config file documents the other devices and how they are
+# created.  You can simply use "-readconfig $thisfile" to create
+# them all.  Here is a overview:
+#
+#     19.0 - Ethernet controller (not created, our e1000 emulation
+#                                 doesn't emulate the ich9 device).
+#     1a.* - USB Controller #2 (ehci + uhci companions)
+#     1b.0 - HD Audio Controller
+#     1c.* - PCI Express Ports
+#     1d.* - USB Controller #1 (ehci + uhci companions,
+#                               "qemu -M q35 -usb" creates these too)
+#     1e.0 - PCI Bridge
+#
+
+[device "ich9-ehci-2"]
+  driver = "ich9-usb-ehci2"
+  multifunction = "on"
+  bus = "pcie.0"
+  addr = "1a.7"
+
+[device "ich9-uhci-4"]
+  driver = "ich9-usb-uhci4"
+  multifunction = "on"
+  bus = "pcie.0"
+  addr = "1a.0"
+  masterbus = "ich9-ehci-2.0"
+  firstport = "0"
+
+[device "ich9-uhci-5"]
+  driver = "ich9-usb-uhci5"
+  multifunction = "on"
+  bus = "pcie.0"
+  addr = "1a.1"
+  masterbus = "ich9-ehci-2.0"
+  firstport = "2"
+
+[device "ich9-uhci-6"]
+  driver = "ich9-usb-uhci6"
+  multifunction = "on"
+  bus = "pcie.0"
+  addr = "1a.2"
+  masterbus = "ich9-ehci-2.0"
+  firstport = "4"
+
+
+[device "ich9-hda-audio"]
+  driver = "ich9-intel-hda"
+  bus = "pcie.0"
+  addr = "1b.0"
+
+
+[device "ich9-pcie-port-1"]
+  driver = "ioh3420"
+  multifunction = "on"
+  bus = "pcie.0"
+  addr = "1c.0"
+  port = "1"
+  chassis = "1"
+
+[device "ich9-pcie-port-2"]
+  driver = "ioh3420"
+  multifunction = "on"
+  bus = "pcie.0"
+  addr = "1c.1"
+  port = "2"
+  chassis = "2"
+
+[device "ich9-pcie-port-3"]
+  driver = "ioh3420"
+  multifunction = "on"
+  bus = "pcie.0"
+  addr = "1c.2"
+  port = "3"
+  chassis = "3"
+
+[device "ich9-pcie-port-4"]
+  driver = "ioh3420"
+  multifunction = "on"
+  bus = "pcie.0"
+  addr = "1c.3"
+  port = "4"
+  chassis = "4"
+
+
+[device "ich9-ehci-1"]
+  driver = "ich9-usb-ehci1"
+  multifunction = "on"
+  bus = "pcie.0"
+  addr = "1d.7"
+
+[device "ich9-uhci-1"]
+  driver = "ich9-usb-uhci1"
+  multifunction = "on"
+  bus = "pcie.0"
+  addr = "1d.0"
+  masterbus = "ich9-ehci-1.0"
+  firstport = "0"
+
+[device "ich9-uhci-2"]
+  driver = "ich9-usb-uhci2"
+  multifunction = "on"
+  bus = "pcie.0"
+  addr = "1d.1"
+  masterbus = "ich9-ehci-1.0"
+  firstport = "2"
+
+[device "ich9-uhci-3"]
+  driver = "ich9-usb-uhci3"
+  multifunction = "on"
+  bus = "pcie.0"
+  addr = "1d.2"
+  masterbus = "ich9-ehci-1.0"
+  firstport = "4"
+
+
+[device "ich9-pci-bridge"]
+  driver = "i82801b11-bridge"
+  bus = "pcie.0"
+  addr = "1e.0"
-- 
1.7.1

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

* [Qemu-devel] [PATCH 3/4] pc: rename machine types
  2013-01-11  8:52 [Qemu-devel] [PULL 0/4] q35: a bunch of little tweaks & fixes Gerd Hoffmann
  2013-01-11  8:52 ` [Qemu-devel] [PATCH 1/4] q35: add ich9 intel hda controller Gerd Hoffmann
  2013-01-11  8:52 ` [Qemu-devel] [PATCH 2/4] q35: document chipset devices Gerd Hoffmann
@ 2013-01-11  8:52 ` Gerd Hoffmann
  2013-01-11  8:53 ` [Qemu-devel] [PATCH 4/4] Makefile: install the "acpi-dsdt.aml" and "q35-acpi-dsdt.aml" blobs too Gerd Hoffmann
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: Gerd Hoffmann @ 2013-01-11  8:52 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann

Starting with release 1.4 we have a fully functional q35 machine type,
i.e. "qemu -M q35" JustWorks[tm].  Update machine type names to reflect
that:

  * pc-1.4 becomes pc-i440fx-1.4
  * q35-next becomes pc-q35-1.4

The pc-1.3 (+older) names are maintained for compatibility reasons.
For the same reason the "pc" and "q35" aliases are kept.  pc-piix-1.4
continues to be the default machine type, again for compatibility
reasons.

Also updated the description (shown by "qemu -M ?") with host bridge
name, south bridge name and chipset release year.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/pc_piix.c |    8 ++++----
 hw/pc_q35.c  |    4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/hw/pc_piix.c b/hw/pc_piix.c
index 2b3d58b..e630aea 100644
--- a/hw/pc_piix.c
+++ b/hw/pc_piix.c
@@ -282,10 +282,10 @@ static void pc_xen_hvm_init(QEMUMachineInitArgs *args)
 }
 #endif
 
-static QEMUMachine pc_machine_v1_4 = {
-    .name = "pc-1.4",
+static QEMUMachine pc_i440fx_machine_v1_4 = {
+    .name = "pc-i440fx-1.4",
     .alias = "pc",
-    .desc = "Standard PC",
+    .desc = "Standard PC (i440FX + PIIX, 1996)",
     .init = pc_init_pci_1_3,
     .max_cpus = 255,
     .is_default = 1,
@@ -646,7 +646,7 @@ static QEMUMachine xenfv_machine = {
 
 static void pc_machine_init(void)
 {
-    qemu_register_machine(&pc_machine_v1_4);
+    qemu_register_machine(&pc_i440fx_machine_v1_4);
     qemu_register_machine(&pc_machine_v1_3);
     qemu_register_machine(&pc_machine_v1_2);
     qemu_register_machine(&pc_machine_v1_1);
diff --git a/hw/pc_q35.c b/hw/pc_q35.c
index ef540b6..52d9976 100644
--- a/hw/pc_q35.c
+++ b/hw/pc_q35.c
@@ -209,9 +209,9 @@ static void pc_q35_init(QEMUMachineInitArgs *args)
 }
 
 static QEMUMachine pc_q35_machine = {
-    .name = "q35-next",
+    .name = "pc-q35-1.4",
     .alias = "q35",
-    .desc = "Q35 chipset PC",
+    .desc = "Standard PC (Q35 + ICH9, 2009)",
     .init = pc_q35_init,
     .max_cpus = 255,
 };
-- 
1.7.1

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

* [Qemu-devel] [PATCH 4/4] Makefile: install the "acpi-dsdt.aml" and "q35-acpi-dsdt.aml" blobs too
  2013-01-11  8:52 [Qemu-devel] [PULL 0/4] q35: a bunch of little tweaks & fixes Gerd Hoffmann
                   ` (2 preceding siblings ...)
  2013-01-11  8:52 ` [Qemu-devel] [PATCH 3/4] pc: rename machine types Gerd Hoffmann
@ 2013-01-11  8:53 ` Gerd Hoffmann
  2013-01-11 16:46 ` [Qemu-devel] [PULL 0/4] q35: a bunch of little tweaks & fixes Anthony Liguori
  2013-01-11 20:12 ` Michael Tokarev
  5 siblings, 0 replies; 8+ messages in thread
From: Gerd Hoffmann @ 2013-01-11  8:53 UTC (permalink / raw)
  To: qemu-devel; +Cc: Laszlo Ersek, Gerd Hoffmann

From: Laszlo Ersek <lersek@redhat.com>

The WARNING message from commit f7e4dd6c made me notice.

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 Makefile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index ee06448..0200bf3 100644
--- a/Makefile
+++ b/Makefile
@@ -280,6 +280,7 @@ bepo
 ifdef INSTALL_BLOBS
 BLOBS=bios.bin sgabios.bin vgabios.bin vgabios-cirrus.bin \
 vgabios-stdvga.bin vgabios-vmware.bin vgabios-qxl.bin \
+acpi-dsdt.aml q35-acpi-dsdt.aml \
 ppc_rom.bin openbios-sparc32 openbios-sparc64 openbios-ppc \
 pxe-e1000.rom pxe-eepro100.rom pxe-ne2k_pci.rom \
 pxe-pcnet.rom pxe-rtl8139.rom pxe-virtio.rom \
-- 
1.7.1

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

* Re: [Qemu-devel] [PULL 0/4] q35: a bunch of little tweaks & fixes.
  2013-01-11  8:52 [Qemu-devel] [PULL 0/4] q35: a bunch of little tweaks & fixes Gerd Hoffmann
                   ` (3 preceding siblings ...)
  2013-01-11  8:53 ` [Qemu-devel] [PATCH 4/4] Makefile: install the "acpi-dsdt.aml" and "q35-acpi-dsdt.aml" blobs too Gerd Hoffmann
@ 2013-01-11 16:46 ` Anthony Liguori
  2013-01-11 20:12 ` Michael Tokarev
  5 siblings, 0 replies; 8+ messages in thread
From: Anthony Liguori @ 2013-01-11 16:46 UTC (permalink / raw)
  To: Gerd Hoffmann, qemu-devel

Pulled, thanks.

N.B.  This note may be extraneous because the pull request was sent by a
version of git older than 1.7.9 making the pull request ambigious.  Please
consider upgrading to a newer version of git.

Regards,

Anthony Liguori

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

* Re: [Qemu-devel] [PULL 0/4] q35: a bunch of little tweaks & fixes.
  2013-01-11  8:52 [Qemu-devel] [PULL 0/4] q35: a bunch of little tweaks & fixes Gerd Hoffmann
                   ` (4 preceding siblings ...)
  2013-01-11 16:46 ` [Qemu-devel] [PULL 0/4] q35: a bunch of little tweaks & fixes Anthony Liguori
@ 2013-01-11 20:12 ` Michael Tokarev
  2013-01-11 20:32   ` Michael Tokarev
  5 siblings, 1 reply; 8+ messages in thread
From: Michael Tokarev @ 2013-01-11 20:12 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel

11.01.2013 12:52, Gerd Hoffmann wrote:
>    Hi,
>
> The biggest change is the machine type renaming patch.
>
> Laszlo Ersek (1):
>        Makefile: install the "acpi-dsdt.aml" and "q35-acpi-dsdt.aml" blobs too

What these *.aml things are needed for?  How they're being used?

Thanks,

/mjt

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

* Re: [Qemu-devel] [PULL 0/4] q35: a bunch of little tweaks & fixes.
  2013-01-11 20:12 ` Michael Tokarev
@ 2013-01-11 20:32   ` Michael Tokarev
  0 siblings, 0 replies; 8+ messages in thread
From: Michael Tokarev @ 2013-01-11 20:32 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel

12.01.2013 00:12, Michael Tokarev wrote:
>>        Makefile: install the "acpi-dsdt.aml" and "q35-acpi-dsdt.aml" blobs too
>
> What these *.aml things are needed for?  How they're being used?

Um, found them, n/m:

hw/pc_q35.c:    pc_acpi_init("q35-acpi-dsdt.aml");
hw/pc_piix.c:    pc_acpi_init("acpi-dsdt.aml");

Somehow it escaped my view when I searched for it the last time.

Thanks,

/mjt

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

end of thread, other threads:[~2013-01-11 20:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-11  8:52 [Qemu-devel] [PULL 0/4] q35: a bunch of little tweaks & fixes Gerd Hoffmann
2013-01-11  8:52 ` [Qemu-devel] [PATCH 1/4] q35: add ich9 intel hda controller Gerd Hoffmann
2013-01-11  8:52 ` [Qemu-devel] [PATCH 2/4] q35: document chipset devices Gerd Hoffmann
2013-01-11  8:52 ` [Qemu-devel] [PATCH 3/4] pc: rename machine types Gerd Hoffmann
2013-01-11  8:53 ` [Qemu-devel] [PATCH 4/4] Makefile: install the "acpi-dsdt.aml" and "q35-acpi-dsdt.aml" blobs too Gerd Hoffmann
2013-01-11 16:46 ` [Qemu-devel] [PULL 0/4] q35: a bunch of little tweaks & fixes Anthony Liguori
2013-01-11 20:12 ` Michael Tokarev
2013-01-11 20:32   ` Michael Tokarev

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