Re: [SeaBIOS] [Qemu-devel] [PATCH v3 for-2.3 10/24] hw/apci: add _PRT method for extra PCI root busses

2015-03-05 Thread Michael S. Tsirkin
On Thu, Mar 05, 2015 at 04:55:08PM +0200, Marcel Apfelbaum wrote: Signed-off-by: Marcel Apfelbaum mar...@redhat.com --- hw/i386/acpi-build.c | 78 1 file changed, 78 insertions(+) diff --git a/hw/i386/acpi-build.c

Re: [SeaBIOS] [Qemu-devel] [PATCH v3 for-2.3 10/24] hw/apci: add _PRT method for extra PCI root busses

2015-03-05 Thread Marcel Apfelbaum
On 03/05/2015 09:52 PM, Michael S. Tsirkin wrote: On Thu, Mar 05, 2015 at 04:55:08PM +0200, Marcel Apfelbaum wrote: Signed-off-by: Marcel Apfelbaum mar...@redhat.com --- hw/i386/acpi-build.c | 78 1 file changed, 78 insertions(+) diff

Re: [SeaBIOS] [Qemu-devel] [PATCH v3 for-2.3 10/24] hw/apci: add _PRT method for extra PCI root busses

2015-03-05 Thread Michael S. Tsirkin
On Thu, Mar 05, 2015 at 11:55:34PM +0200, Marcel Apfelbaum wrote: On 03/05/2015 09:52 PM, Michael S. Tsirkin wrote: On Thu, Mar 05, 2015 at 04:55:08PM +0200, Marcel Apfelbaum wrote: Signed-off-by: Marcel Apfelbaum mar...@redhat.com --- hw/i386/acpi-build.c | 78

[SeaBIOS] [Qemu-devel] [PATCH v3 for-2.3 15/24] hw/pci: made pci_bus_num a PCIBusClass method

2015-03-05 Thread Marcel Apfelbaum
From: Marcel Apfelbaum marce...@redhat.com Refactoring it as a method of PCIBusClass will allow different implementations for subclasses. Signed-off-by: Marcel Apfelbaum mar...@redhat.com --- hw/i386/kvm/pci-assign.c | 1 + hw/pci/pci.c | 7 --- hw/pci/pci_bus.c | 10

Re: [SeaBIOS] [PATCH] boot: add serial-friendly alternatives for invoking the boot menu

2015-03-05 Thread Paolo Bonzini
On 04/03/2015 22:42, Kevin O'Connor wrote: On Wed, Mar 04, 2015 at 05:57:02PM +0100, Paolo Bonzini wrote: F11 and F12 are trapped by some terminal emulators, and sgabios does not always recognize function keys very well. Real-world machines often provide replacements for function keys for

[SeaBIOS] [Qemu-devel] [PATCH v3 for-2.3 16/24] hw/pci: introduce TYPE_PCI_MAIN_HOST_BRIDGE interface

2015-03-05 Thread Marcel Apfelbaum
From: Marcel Apfelbaum marce...@redhat.com This is a marker interface used to differentiate the default host bridge on a system with multiple host bridges. This differentiation is required only for pc machines for now by the ACPI subsystem. Signed-off-by: Marcel Apfelbaum mar...@redhat.com ---

[SeaBIOS] [Qemu-devel] [PATCH v3 for-2.3 19/24] hw/pci: introduce PCI Expander Bridge (PXB)

2015-03-05 Thread Marcel Apfelbaum
From: Marcel Apfelbaum marce...@redhat.com PXB is a light-weight host bridge whose purpose is to enable the main host bridge to support multiple PCI root buses. As oposed to PCI-2-PCI bridge's secondary bus, PXB's bus is a primary bus and can be associated with a NUMA node (different from the

[SeaBIOS] [Qemu-devel] [PATCH v3 for-2.3 12/24] hw/acpi: remove from root bus 0 the crs resources used by other busses.

2015-03-05 Thread Marcel Apfelbaum
If multiple root busses are used, root bus 0 cannot use all the pci holes ranges. Remove the IO/mem ranges used by the other primary busses. Signed-off-by: Marcel Apfelbaum mar...@redhat.com --- hw/i386/acpi-build.c | 84 1 file changed, 72

[SeaBIOS] [PATCH v2] boot: add serial-friendly alternatives for invoking the boot menu

2015-03-05 Thread Paolo Bonzini
F11 and F12 are trapped by some terminal emulators, and sgabios does not always recognize function keys very well. Real-world machines often provide replacements for function keys for use on the serial console: ESC+1...ESC+0 for F1...F10, ESC+SHIFT+1 and ESC+SHIFT+2 for F11...F12. Accept all of

[SeaBIOS] [Qemu-devel] [PATCH v3 for-2.3 24/24] hw/pxb: add numa_node parameter

2015-03-05 Thread Marcel Apfelbaum
The pxb can be attach to and existing numa node by specifying numa_node option that equals the desired numa nodeid. Signed-off-by: Marcel Apfelbaum mar...@redhat.com --- hw/i386/acpi-build.c| 12 hw/pci-bridge/pci_expander_bridge.c | 17 + 2 files

[SeaBIOS] [Qemu-devel] [PATCH v3 for-2.3 14/24] hw/pci: made pci_bus_is_root a PCIBusClass method

2015-03-05 Thread Marcel Apfelbaum
From: Marcel Apfelbaum marce...@redhat.com Refactoring it as a method of PCIBusClass will allow different implementations for subclasses. Removed the assumption that the root bus does not have a parent device because is specific only to the default class implementation. Signed-off-by: Marcel

[SeaBIOS] [Qemu-devel] [PATCH v3 for-2.3 13/24] hw/pci: move pci bus related code to separate files

2015-03-05 Thread Marcel Apfelbaum
This refactoring moves all the code needed (recursively) to register TYPE_PCI_BUS type to a new file hw/pci/pci_bus.c . This allows to properly add new functionality to the pci bus class. Signed-off-by: Marcel Apfelbaum mar...@redhat.com --- arch_init.c | 1 + hw/alpha/typhoon.c

[SeaBIOS] [Qemu-devel] [PATCH v3 for-2.3 11/24] hw/acpi: add _CRS method for extra root busses

2015-03-05 Thread Marcel Apfelbaum
Save the IO/mem/bus numbers ranges assigned to the extra root busses to be removed from the root bus 0 range. Signed-off-by: Marcel Apfelbaum mar...@redhat.com --- hw/i386/acpi-build.c | 149 +++ 1 file changed, 149 insertions(+) diff --git

[SeaBIOS] [Qemu-devel] [PATCH v3 for-2.3 18/24] hw/pci: implement iteration over multiple host bridges

2015-03-05 Thread Marcel Apfelbaum
From: Marcel Apfelbaum marce...@redhat.com Signed-off-by: Marcel Apfelbaum mar...@redhat.com --- hw/pci/pci.c | 8 include/hw/pci/pci_host.h | 4 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/hw/pci/pci.c b/hw/pci/pci.c index 53598bd..f0cf752 100644

[SeaBIOS] [Qemu-devel] [PATCH v3 for-2.3 10/24] hw/apci: add _PRT method for extra PCI root busses

2015-03-05 Thread Marcel Apfelbaum
Signed-off-by: Marcel Apfelbaum mar...@redhat.com --- hw/i386/acpi-build.c | 78 1 file changed, 78 insertions(+) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index e5709e8..f0401d2 100644 --- a/hw/i386/acpi-build.c +++

[SeaBIOS] [Qemu-devel] [PATCH v3 for-2.3 17/24] hw/pci: removed 'rootbus nr is 0' assumption from qmp_pci_query

2015-03-05 Thread Marcel Apfelbaum
From: Marcel Apfelbaum marce...@redhat.com Use the newer pci_bus_num to correctly get the root bus number. Signed-off-by: Marcel Apfelbaum mar...@redhat.com --- hw/pci/pci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/pci/pci.c b/hw/pci/pci.c index e386f2c..53598bd

[SeaBIOS] [Qemu-devel] [PATCH v3 for-2.3 08/24] acpi: add aml_while() term

2015-03-05 Thread Marcel Apfelbaum
Add encoding for ACPI DefWhile Opcode. Signed-off-by: Marcel Apfelbaum mar...@redhat.com --- hw/acpi/aml-build.c | 8 include/hw/acpi/aml-build.h | 1 + 2 files changed, 9 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 86b2ddc..eb53d90 100644 ---

[SeaBIOS] [Qemu-devel] [PATCH v3 for-2.3 20/24] hw/pci: inform bios if the system has more than one pci bridge

2015-03-05 Thread Marcel Apfelbaum
From: Marcel Apfelbaum marce...@redhat.com The bios looks for 'etc/extra-pci-roots' to decide if is going to scan further buses after bus 0 tree. Signed-off-by: Marcel Apfelbaum mar...@redhat.com --- hw/i386/pc.c | 13 + 1 file changed, 13 insertions(+) diff --git a/hw/i386/pc.c

[SeaBIOS] [Qemu-devel] [PATCH v3 for-2.3 07/24] acpi: add aml_increment() term

2015-03-05 Thread Marcel Apfelbaum
Add encoding for ACPI DefIncrement Opcode. Signed-off-by: Marcel Apfelbaum mar...@redhat.com --- hw/acpi/aml-build.c | 8 include/hw/acpi/aml-build.h | 1 + 2 files changed, 9 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 45c1eb1..86b2ddc 100644 ---

[SeaBIOS] [Qemu-devel] [PATCH v3 for-2.3 22/24] hw/pxb: add map_irq func

2015-03-05 Thread Marcel Apfelbaum
The bios does not index the pxb slot number when it computes the IRQ because it resides on bus 0 and not on the current bus. However Qemu routes the irq through bus 0 and adds the pxb slot to the IRQ computation. Synchronize between bios and Qemu by canceling pxb's effect. Signed-off-by: Marcel

[SeaBIOS] [Qemu-devel] [PATCH v3 for-2.3 01/24] acpi: add aml_or() term

2015-03-05 Thread Marcel Apfelbaum
Add encoding for ACPI DefOr Opcode. Signed-off-by: Marcel Apfelbaum mar...@redhat.com --- hw/acpi/aml-build.c | 10 ++ include/hw/acpi/aml-build.h | 1 + 2 files changed, 11 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 876cada..a31f88e 100644 ---

[SeaBIOS] [Qemu-devel] [PATCH v3 for-2.3 00/24] hw/pc: implement multiple primary busses for pc machines

2015-03-05 Thread Marcel Apfelbaum
Notes: - Sorry for the late submission, I was waiting for dynamic ACPI series to get merged in order to submit - my bad. - The prev version (v2) was wrongfully tagged by me as RFC, it was actually ready but not rebased. V3 only rebases with no actual functionality changed. - This series

[SeaBIOS] [Qemu-devel] [PATCH v3 for-2.3 05/24] acpi: add aml_shiftleft() term

2015-03-05 Thread Marcel Apfelbaum
Add encoding for ACPI DefShiftLeft Opcode. Signed-off-by: Marcel Apfelbaum mar...@redhat.com --- hw/acpi/aml-build.c | 10 ++ include/hw/acpi/aml-build.h | 1 + 2 files changed, 11 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 0b3fcda..ac27b40

[SeaBIOS] [Qemu-devel] [PATCH v3 for-2.3 04/24] acpi: add aml_index() term

2015-03-05 Thread Marcel Apfelbaum
Add encoding for ACPI DefIndex Opcode. Signed-off-by: Marcel Apfelbaum mar...@redhat.com --- hw/acpi/aml-build.c | 10 ++ include/hw/acpi/aml-build.h | 1 + 2 files changed, 11 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 611c949..0b3fcda 100644

[SeaBIOS] [Qemu-devel] [PATCH v3 for-2.3 02/24] acpi: add aml_add() term

2015-03-05 Thread Marcel Apfelbaum
Add encoding for ACPI DefAdd Opcode. Signed-off-by: Marcel Apfelbaum mar...@redhat.com --- hw/acpi/aml-build.c | 10 ++ include/hw/acpi/aml-build.h | 1 + 2 files changed, 11 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index a31f88e..38b82a4 100644 ---

[SeaBIOS] [Qemu-devel] [PATCH v3 for-2.3 03/24] acpi: add aml_lless() term

2015-03-05 Thread Marcel Apfelbaum
Add encoding for ACPI DefLLess Opcode. Signed-off-by: Marcel Apfelbaum mar...@redhat.com --- hw/acpi/aml-build.c | 9 + include/hw/acpi/aml-build.h | 1 + 2 files changed, 10 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 38b82a4..611c949 100644 ---

[SeaBIOS] [Qemu-devel] [PATCH v3 for-2.3 06/24] acpi: add aml_shiftright() term

2015-03-05 Thread Marcel Apfelbaum
Add encoding for ACPI DefShiftRight Opcode. Signed-off-by: Marcel Apfelbaum mar...@redhat.com --- hw/acpi/aml-build.c | 10 ++ include/hw/acpi/aml-build.h | 1 + 2 files changed, 11 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index ac27b40..45c1eb1

[SeaBIOS] [Qemu-devel] [PATCH v3 for-2.3 09/24] hw/acpi: add support for multiple root busses

2015-03-05 Thread Marcel Apfelbaum
If the machine has several root busses, we need to add them to acpi in order to be properly detected by guests. Signed-off-by: Marcel Apfelbaum mar...@redhat.com --- hw/i386/acpi-build.c | 32 1 file changed, 32 insertions(+) diff --git a/hw/i386/acpi-build.c