information about the machine
- GTDT: Generic timer description table
- MADT: Multiple APIC description table
- DSDT: Holds all information about system devices/peripherals, pointed by FADT
Signed-off-by: Shannon Zhao
---
hw/arm/Makefile.objs |1 +
hw/arm/virt-acpi-build.c
Move generic acpi building helpers into dedictated file and this
can be shared with other machines.
Signed-off-by: Shannon Zhao
---
hw/acpi/aml-build.c | 58
hw/i386/acpi-build.c| 104 +--
hw/i386/acpi-build.h
RDST points to other tables FADT, MADT, GTDT.
Signed-off-by: Shannon Zhao
---
hw/arm/virt-acpi-build.c | 31 ++-
1 files changed, 30 insertions(+), 1 deletions(-)
diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c
index bee2e7f..245770a 100644
--- a
Add aml_memory32_fixed() for describing device mmio region in resource template.
Add aml_interrupt() for describing device interrupt in resource template.
These can be used to generating DSDT table for ACPI on ARM.
Signed-off-by: Shannon Zhao
---
hw/acpi/aml-build.c | 40
In the case of mach virt, it is used to set the Hardware Reduced bit
and enable PSCI SMP booting through HVC. So ignore FACS and FADT
points to DSDT.
Update the header definitions for FADT taking into account the new
additions of ACPI v5.1 in `include/hw/acpi/acpi-defs.h`
Signed-off-by: Shannon
Template for the 32-Bit Fixed Memory
Range and the Extended Interrupt Descriptors.
Signed-off-by: Shannon Zhao
---
hw/arm/virt-acpi-build.c | 133 ++
1 files changed, 133 insertions(+), 0 deletions(-)
diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt
branch ASL_API_v3
* use rsdt instead of xsdt according to Igor Mammedov's suggestion
changes since v1:
* fix bug found by Laszlo
* move common helpers into dedictated file and change generating
table order according to Igor's comments
* fix copyright and function name accor
The ACPI related header file acpi-defs.h, includes definitions that
apply on other architectures as well. Move it in `include/hw/acpi/`
to sanely include it from other architectures.
Signed-off-by: Alvise Rigo
Signed-off-by: Shannon Zhao
---
hw/i386/acpi-build.c|2 +-
hw/i386/acpi
MADT describes GIC enabled ARM platforms. The GICC and GICD
subtables are used to define the GIC regions.
Signed-off-by: Shannon Zhao
---
hw/arm/virt-acpi-build.c | 62 ++
include/hw/acpi/acpi-defs.h | 36 +-
include/hw
Expose the needed device information to the table generation
insfrastructure and register a machine_init_done notify to
call virt_acpi_build().
Add CONFIG_ACPI to arm-softmmu.mak. Maybe this way is not
right, fix me please.
Signed-off-by: Shannon Zhao
---
default-configs/arm-softmmu.mak
ACPI v5.1 defines GTDT for ARM devices as a place to describe timer
related information in the system. The Arch Timer interrupts must
be provided for GTDT.
Signed-off-by: Shannon Zhao
---
hw/arm/virt-acpi-build.c| 31 +++
include/hw/acpi/acpi-defs.h | 37
RSDP points to RSDT which in turn points to other tables.
Signed-off-by: Shannon Zhao
---
hw/arm/virt-acpi-build.c | 32
1 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c
index 245770a..bfbddbe
Add GPIO controller in ACPI DSDT table. It can be used
for device hotplug.
Signed-off-by: Shannon Zhao
---
hw/arm/virt-acpi-build.c | 21 +
hw/arm/virt.c|2 ++
include/hw/arm/virt-acpi-build.h |2 ++
3 files changed, 25 insertions(+), 0
Add a hotplug device for machine virt. This can be used for virt
to support device hotplug. At the moment this hotplug device just
include a mmio region which shows the present status of cpus.
Signed-off-by: Shannon Zhao
---
default-configs/arm-softmmu.mak |2 +
hw/acpi/Makefile.objs
Add a GPIO controller in machine virt, in order to support cpu hotplug.
Here we use pl061.
Signed-off-by: Shannon Zhao
---
hw/arm/virt.c | 28
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 8a00574..43c0260
Add a hotplug device in machine virt and add cpu hotplug support
using cpu-add.
Signed-off-by: Shannon Zhao
---
hw/arm/virt.c | 159 +++-
include/hw/acpi/virt-hotplug.h |1 +
2 files changed, 159 insertions(+), 1 deletions(-)
diff --git
Move topology.h to an arch-independent location and the apicid_foo
can be reused by other architectures. And remove the x86 prefix.
Signed-off-by: Shannon Zhao
---
include/hw/acpi/topology.h | 134
target-i386/cpu.c |4 +-
target-i386
Add apic_id property for ARMCPU. It can be used for cpu hotplug.
Signed-off-by: Shannon Zhao
---
target-arm/cpu-qom.h |1 +
target-arm/cpu.c | 77 ++
target-arm/cpu.h |2 +
3 files changed, 80 insertions(+), 0 deletions(-)
diff
used by guest now.
Any comments are welcome.
Thanks,
Shannon
Shannon Zhao (7):
hw/arm/virt: Add a GPIO controller
hw/arm/virt-acpi-build: Add GPIO controller in ACPI DSDT table
hw/acpi/virt-hotplug: Add a hotplug device for machine virt
topology: Move topology.h to an arch-independent loc
Add cpu hotplug support in ACPI.
Signed-off-by: Shannon Zhao
---
hw/acpi/aml-build.c | 135
hw/acpi/virt-hotplug.c | 11 +++
hw/arm/virt-acpi-build.c | 179 +-
hw/arm/virt.c
On 2015/2/19 1:52, Wei Huang wrote:
>
>
> On 02/17/2015 04:10 AM, Shannon Zhao wrote:
>> Add a GPIO controller in machine virt, in order to support cpu hotplug.
>> Here we use pl061.
>>
>> Signed-off-by: Shannon Zhao
>> ---
>> hw/arm/virt.c |
ACPI v5.1 defines GTDT for ARM devices as a place to describe timer
related information in the system. The Arch Timer interrupts must
be provided for GTDT
Signed-off-by: Shannon Zhao
---
hw/arm/virt-acpi-build.c| 21 +
include/hw/acpi/acpi-defs.h | 37
FACS table is created as a mockup, as with the Hardware Reduced bit
set it will not be used.
Update the header definitions for FACS taking into account the new
additions of ACPI v5.1 in `include/hw/acpi/acpi-defs.h`
Signed-off-by: Shannon Zhao
---
hw/arm/virt-acpi-build.c|4
Add acpi_fixed_memory32() for describing device mmio region in resource
template.
Add acpi_extended_irq() for describing device interrupt in resource template.
These can be used to generating DSDT table for ACPI on ARM.
Signed-off-by: Shannon Zhao
---
hw/acpi/acpi-build-utils.c | 42
Template for the 32-Bit Fixed Memory
Range and the Extended Interrupt Descriptors.
The following devices are included in the DSDT:
- CPUs
- UART
- RTC
- NAND Flash
- virtio-mmio
Signed-off-by: Shannon Zhao
---
hw/arm/virt-acpi-build.c | 120 ++
1 files
lease.
Signed-off-by: Shannon Zhao
---
default-configs/arm-softmmu.mak |1 +
default-configs/i386-softmmu.mak |3 ++
default-configs/mips-softmmu.mak |3 ++
default-configs/mips64-softmmu.mak |3 ++
default-configs/mips64el-softmmu.mak |3 ++
default-configs/m
XDST points to other tables except FACS & DSDT.
Implement a common header helper functions for generating ACPI tables.
Signed-off-by: Shannon Zhao
---
hw/arm/virt-acpi-build.c| 34 ++
include/hw/acpi/acpi-defs.h |9 +
2 files changed
before, he says that if qemu can expose the generated ACPI
tables over fw_cfg, he can quickly add support in UEFI. So just send this
out and make it go forward.
Todo:
1) add GPIO controller in virt and expose it through ACPI
2) add cpu hotplug support
Any comments are welcome.
Thanks,
Shannon
S
The ACPI related header file acpi-defs.h, includes definitions that
apply on other architectures as well. Move it in `include/hw/acpi/`
to sanely include it from other architectures.
Signed-off-by: Alvise Rigo
Signed-off-by: Shannon Zhao
---
hw/i386/acpi-build.c|2 +-
hw/i386/acpi
RSDP points to XSDT which in turn points to other tables.
Signed-off-by: Shannon Zhao
---
hw/arm/virt-acpi-build.c | 22 ++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c
index 4eed0a3..9c3971a 100644
MADT describes GIC enabled ARM platforms. The GICC and GICD
subtables are used to define the GIC regions.
Signed-off-by: Shannon Zhao
---
hw/arm/virt-acpi-build.c| 30 ++
include/hw/acpi/acpi-defs.h | 37 -
2 files changed
FADT points to FACS and DSDT, in the case of mach virt, it is also used
to set the Hardware Reduced bit and enable PSCI SMP booting through HVC.
Update the header definitions for FADT taking into account the new
additions of ACPI v5.1 in `include/hw/acpi/acpi-defs.h`
Signed-off-by: Shannon Zhao
- XSDT: Points to all other tables (except FACS & DSDT)
- FADT: Generic information about the machine
- DSDT: Holds all information about system devices/peripherals
- FACS: Needs to be pointed from FADT
Signed-off-by: Shannon Zhao
---
hw/arm/Makefile.objs |1 +
hw/arm/virt-acpi-bui
On 2015/1/25 6:05, Laszlo Ersek wrote:
> comments below
>
> On 01/24/15 10:21, Shannon Zhao wrote:
>> FADT points to FACS and DSDT, in the case of mach virt, it is also used
>> to set the Hardware Reduced bit and enable PSCI SMP booting through HVC.
>>
>> Updat
On 2015/1/25 6:04, Laszlo Ersek wrote:
> comments below, fix attached
>
> On 01/24/15 10:21, Shannon Zhao wrote:
>> XDST points to other tables except FACS & DSDT.
>> Implement a common header helper functions for generating ACPI tables.
>>
>> Signed-off-by:
Hi MST,
Thanks for your review :-) Reply below.
On 2015/1/25 16:39, Michael S. Tsirkin wrote:
> On Sat, Jan 24, 2015 at 05:21:18PM +0800, Shannon Zhao wrote:
>> Add acpi_fixed_memory32() for describing device mmio region in resource
>> template.
>> Add acpi_extended_irq()
On 2015/1/25 2:56, Laszlo Ersek wrote:
> On 01/24/15 10:21, Shannon Zhao wrote:
>> Expose the needed device information to the table generation
>> insfrastructure and register a machine_init_done notify to
>> call virt_acpi_build().
>>
>> Add CONFIG_ACPI to arm-
On 2015/1/25 7:31, Laszlo Ersek wrote:
> On 01/24/15 10:21, Shannon Zhao wrote:
>> This patch series generate seven ACPI v5.1 tables for machine virt on
>> ARM.
>> The set of generated tables are:
>> - RSDP
>> - XSDT
>> - MADT
>> - GTDT
>> - FADT
On 2015/1/25 0:22, Michael S. Tsirkin wrote:
> On Sat, Jan 24, 2015 at 05:21:11PM +0800, Shannon Zhao wrote:
>> > Introduce a preliminary framework in virt-acpi-build.c with the main
>> > ACPI build functions. It exposes the generated ACPI contents to
>> > guest ov
On 2015/1/26 18:19, Igor Mammedov wrote:
> On Sat, 24 Jan 2015 17:21:11 +0800
> Shannon Zhao wrote:
>
>> Introduce a preliminary framework in virt-acpi-build.c with the main
>> ACPI build functions. It exposes the generated ACPI contents to
>> guest over fw_cfg. Some
On 2015/1/26 18:22, Igor Mammedov wrote:
> On Sat, 24 Jan 2015 17:21:12 +0800
> Shannon Zhao wrote:
>
>> > RSDP points to XSDT which in turn points to other tables.
>> >
>> > Signed-off-by: Shannon Zhao
>> > ---
>> > hw/arm/virt-acpi-build
On 2015/1/26 18:40, Igor Mammedov wrote:
> On Sat, 24 Jan 2015 17:21:19 +0800
> Shannon Zhao wrote:
>
>> > DSDT consists of the usual common table header plus a definition
>> > block in AML encoding which describes all devices in the platform.
>> >
>
On 2015/1/26 18:22, Igor Mammedov wrote:
> On Sat, 24 Jan 2015 17:21:12 +0800
> Shannon Zhao wrote:
>
>> > RSDP points to XSDT which in turn points to other tables.
>> >
>> > Signed-off-by: Shannon Zhao
>> > ---
>> > hw/arm/virt-acpi-build
On 2015/1/27 18:30, Igor Mammedov wrote:
> On Tue, 27 Jan 2015 14:47:44 +0800
> Shannon Zhao wrote:
>
>> On 2015/1/26 18:19, Igor Mammedov wrote:
>>> On Sat, 24 Jan 2015 17:21:11 +0800
>>> Shannon Zhao wrote:
>>>
>>>> Introduce a pr
On 2015/1/28 18:00, Igor Mammedov wrote:
> On Wed, 28 Jan 2015 09:56:26 +0200
> "Michael S. Tsirkin" wrote:
>
>>> I've tried redo series with passing alloc list as first argument,
>>> looks ugly as hell
>>
>> I tried too. Not too bad at all. See below:
>>
>> diff --git a/hw/i386/acpi-build.c b/hw
On 2015/1/22 22:50, Igor Mammedov wrote:
> Signed-off-by: Igor Mammedov
> ---
> hw/acpi/acpi-build-utils.c | 47
> ++
> hw/i386/acpi-build.c | 1 -
> include/hw/acpi/acpi-build-utils.h | 8 +++
> 3 files changed, 55 insertions(+), 1
XDST points to other tables except FACS & DSDT.
Signed-off-by: Shannon Zhao
---
hw/arm/virt-acpi-build.c| 32 +++-
include/hw/acpi/acpi-defs.h |9 +
2 files changed, 40 insertions(+), 1 deletions(-)
diff --git a/hw/arm/virt-acpi-build.c b/hw
DSDT)
- FADT: Generic information about the machine
- GTDT: Generic timer description table
- MADT: Multiple APIC description table
- DSDT: Holds all information about system devices/peripherals, pointed by FADT
Signed-off-by: Shannon Zhao
---
hw/arm/Makefile.objs |1 +
hw/arm/virt-
Template for the 32-Bit Fixed Memory
Range and the Extended Interrupt Descriptors.
Signed-off-by: Shannon Zhao
---
hw/arm/virt-acpi-build.c | 131 ++
1 files changed, 131 insertions(+), 0 deletions(-)
diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt
Move generic acpi building helpers into dedictated file and this
can be shared with other machines.
Signed-off-by: Shannon Zhao
---
hw/acpi/acpi-build-utils.c | 63 -
hw/i386/acpi-build.c | 111
hw/i386/acpi
common helpers into dedictated file and change generating
table order according to Igor's comments
* fix copyright and function name according to Michael's comments
Shannon Zhao (11):
hw/i386: Move ACPI header definitions in an arch-independent location
hw/i386/acpi-build: move
Add acpi_memory32_fixed() for describing device mmio region in resource
template.
Add acpi_interrupt() for describing device interrupt in resource template.
These can be used to generating DSDT table for ACPI on ARM.
Signed-off-by: Shannon Zhao
---
hw/acpi/acpi-build-utils.c | 40
The ACPI related header file acpi-defs.h, includes definitions that
apply on other architectures as well. Move it in `include/hw/acpi/`
to sanely include it from other architectures.
Signed-off-by: Alvise Rigo
Signed-off-by: Shannon Zhao
---
hw/i386/acpi-build.c|2 +-
hw/i386/acpi
lease.
Signed-off-by: Shannon Zhao
---
default-configs/arm-softmmu.mak |1 +
default-configs/i386-softmmu.mak |3 ++
default-configs/mips-softmmu.mak |3 ++
default-configs/mips64-softmmu.mak |3 ++
default-configs/mips64el-softmmu.mak |3 ++
default-configs/m
RSDP points to XSDT which in turn points to other tables.
Signed-off-by: Shannon Zhao
---
hw/arm/virt-acpi-build.c | 31 +++
1 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c
index 2a2b2ab..c838285
MADT describes GIC enabled ARM platforms. The GICC and GICD
subtables are used to define the GIC regions.
Signed-off-by: Shannon Zhao
---
hw/arm/virt-acpi-build.c | 62 ++
include/hw/acpi/acpi-defs.h | 36 +-
include/hw
In the case of mach virt, it is used to set the Hardware Reduced bit
and enable PSCI SMP booting through HVC. So ignore FACS and FADT
points to DSDT.
Update the header definitions for FADT taking into account the new
additions of ACPI v5.1 in `include/hw/acpi/acpi-defs.h`
Signed-off-by: Shannon
ACPI v5.1 defines GTDT for ARM devices as a place to describe timer
related information in the system. The Arch Timer interrupts must
be provided for GTDT.
Signed-off-by: Shannon Zhao
---
hw/arm/virt-acpi-build.c| 31 +++
include/hw/acpi/acpi-defs.h | 37
On 2015/1/29 16:45, Igor Mammedov wrote:
> On Thu, 29 Jan 2015 16:02:47 +0800
> Shannon Zhao wrote:
>
>> > On 2015/1/22 22:50, Igor Mammedov wrote:
>>> > > Signed-off-by: Igor Mammedov
>>> > > ---
On 2015/2/4 0:51, Laszlo Ersek wrote:
> On 02/03/15 17:19, Igor Mammedov wrote:
>> On Thu, 29 Jan 2015 16:37:11 +0800
>> Shannon Zhao wrote:
>>
>>> XDST points to other tables except FACS & DSDT.
>> Is there any reason to use XSDT instead of RSDT?
>&g
On 2015/3/18 1:05, Stefan Hajnoczi wrote:
> On Fri, Mar 13, 2015 at 01:21:59PM +0800, Shannon Zhao wrote:
>> It's detected by coverity.In is_vlan_packet s->mac_reg[VET] is
>> unsigned int but is dereferenced as a narrower unsigned short.
>> This may lead to unexpected
From: Shannon Zhao
As 4de9a88(hw/arm/virt: Fix memory leak reported by Coverity)
and 6e05a12(arm: fix memory leak) both handle the memory leak
reported by Coverity, this cause qemu corruption due to
double free.
Signed-off-by: Shannon Zhao
Signed-off-by: Shannon Zhao
---
hw/arm/virt.c |1
From: Shannon Zhao
Add aml_memory32_fixed() for describing device mmio region in resource template.
These can be used to generating DSDT table for ACPI on ARM.
Signed-off-by: Shannon Zhao
Signed-off-by: Shannon Zhao
---
hw/acpi/aml-build.c | 22 ++
include/hw/acpi
From: Shannon Zhao
Add PCIe info struct, prepare for building PCIe table.
And generate MCFG table.
Signed-off-by: Shannon Zhao
Signed-off-by: Shannon Zhao
---
hw/arm/virt-acpi-build.c | 21 +
include/hw/arm/virt-acpi-build.h | 12
2 files changed, 33
From: Shannon Zhao
Add aml_interrupt() for describing device interrupt in resource template.
These can be used to generating DSDT table for ACPI on ARM.
Signed-off-by: Shannon Zhao
Signed-off-by: Shannon Zhao
---
hw/acpi/aml-build.c | 18 ++
include/hw/acpi/aml
From: Shannon Zhao
Signed-off-by: Shannon Zhao
Signed-off-by: Shannon Zhao
---
hw/acpi/aml-build.c | 7 +++
include/hw/acpi/aml-build.h | 1 +
2 files changed, 8 insertions(+)
diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c
index 4f936f7..9b8b422 100644
--- a/hw/acpi/aml
From: Shannon Zhao
Signed-off-by: Shannon Zhao
Signed-off-by: Shannon Zhao
---
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 312afb6..4f936f7 100644
--- a/hw/acpi
From: Shannon Zhao
The ACPI related header file acpi-defs.h, includes definitions that
apply on other architectures as well. Move it in `include/hw/acpi/`
to sanely include it from other architectures.
Signed-off-by: Alvise Rigo
Signed-off-by: Shannon Zhao
Signed-off-by: Shannon Zhao
---
hw
From: Shannon Zhao
DSDT consists of the usual common table header plus a definition
block in AML encoding which describes all devices in the platform.
After initializing DSDT with header information the namespace is
created which is followed by the device encodings. The devices are
described
From: Shannon Zhao
Introduce a preliminary framework in virt-acpi-build.c with the main
ACPI build functions. It exposes the generated ACPI contents to
guest over fw_cfg.
The required ACPI v5.1 tables for ARM are:
- RSDP: Initial table that points to XSDT
- RSDT: Points to FADT GTDT MADT tables
From: Shannon Zhao
Expose the needed device information to the table generation
insfrastructure and register a machine_init_done notify to
call virt_acpi_build().
Add CONFIG_ACPI to arm-softmmu.mak.
Signed-off-by: Shannon Zhao
Signed-off-by: Shannon Zhao
---
default-configs/arm-softmmu.mak
From: Shannon Zhao
Add aml_or() term and make aml_and can take three args.
Expose build_append_int_noprefix as it wiil be used by
creating a buffer.
Signed-off-by: Shannon Zhao
Signed-off-by: Shannon Zhao
---
hw/acpi/aml-build.c | 24 +---
hw/i386/acpi-build.c
From: Shannon Zhao
Add PCIe controller in ACPI DSDT table, so the guest can detect
the PCIe.
Signed-off-by: Shannon Zhao
Signed-off-by: Shannon Zhao
---
hw/arm/virt-acpi-build.c | 140 +++
1 file changed, 140 insertions(+)
diff --git a/hw/arm/virt
From: Shannon Zhao
Add ToUUID macro, this is useful for generating PCIe ACPI table.
Signed-off-by: Shannon Zhao
Signed-off-by: Shannon Zhao
---
hw/acpi/aml-build.c | 23 +++
include/hw/acpi/aml-build.h | 2 ++
2 files changed, 25 insertions(+)
diff --git a/hw
From: Shannon Zhao
This patch series generate six ACPI v5.1 tables for machine virt on ARM.
The set of generated tables are:
- RSDP
- RSDT
- MADT
- GTDT
- FADT
- DSDT
- MCFG (For PCIe host bridge)
These tables are created dynamically using the function of aml-build.c,
taking into account the
From: Shannon Zhao
Move generic acpi building helpers into dedictated file and this
can be shared with other machines.
Signed-off-by: Shannon Zhao
Signed-off-by: Shannon Zhao
---
hw/acpi/aml-build.c | 58 ++
hw/i386/acpi-build.c| 77
From: Shannon Zhao
In the case of mach virt, it is used to set the Hardware Reduced bit
and enable PSCI SMP booting through HVC. So ignore FACS and FADT
points to DSDT.
Update the header definitions for FADT taking into account the new
additions of ACPI v5.1 in `include/hw/acpi/acpi-defs.h
From: Shannon Zhao
ACPI v5.1 defines GTDT for ARM devices as a place to describe timer
related information in the system. The Arch Timer interrupts must
be provided for GTDT.
Signed-off-by: Shannon Zhao
Signed-off-by: Shannon Zhao
---
hw/arm/virt-acpi-build.c| 30
From: Shannon Zhao
RSDP points to RSDT which in turn points to other tables.
Signed-off-by: Shannon Zhao
Signed-off-by: Shannon Zhao
---
hw/arm/virt-acpi-build.c | 35 ++-
1 file changed, 34 insertions(+), 1 deletion(-)
diff --git a/hw/arm/virt-acpi-build.c b
From: Shannon Zhao
RSDT points to other tables FADT, MADT, GTDT.
Signed-off-by: Shannon Zhao
Signed-off-by: Shannon Zhao
---
hw/arm/virt-acpi-build.c | 27 +++
1 file changed, 27 insertions(+)
diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c
index
From: Shannon Zhao
Signed-off-by: Shannon Zhao
Signed-off-by: Shannon Zhao
---
hw/acpi/aml-build.c | 17 +
include/hw/acpi/aml-build.h | 5 +
2 files changed, 22 insertions(+)
diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c
index 221d054..2076ba1 100644
From: Shannon Zhao
MADT describes GIC enabled ARM platforms. The GICC and GICD
subtables are used to define the GIC regions.
Signed-off-by: Shannon Zhao
Signed-off-by: Shannon Zhao
---
hw/arm/virt-acpi-build.c | 61
include/hw/acpi/acpi-defs.h
From: Shannon Zhao
Signed-off-by: Shannon Zhao
Signed-off-by: Shannon Zhao
---
hw/acpi/aml-build.c | 11 +++
include/hw/acpi/aml-build.h | 1 +
2 files changed, 12 insertions(+)
diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c
index 9b8b422..221d054 100644
--- a/hw
On 2015/4/7 2:47, Mark Salter wrote:
> On Fri, 2015-04-03 at 18:03 +0800, Shannon Zhao wrote:
>> > From: Shannon Zhao
>> >
>> > This patch series generate six ACPI v5.1 tables for machine virt on ARM.
>> > The set of generated tables are:
>>
On 2015/4/7 17:19, Peter Maydell wrote:
> On 7 April 2015 at 03:43, Shannon Zhao wrote:
>> The dts node is:
>> ranges = <0x100 0x0 0x0 0x0 0x3eff 0x0 0x1
>> 0x200 0x0 0x1000 0x0 0x1000 0x0
>> 0x2ef
On 2015/4/7 20:07, Peter Maydell wrote:
> On 7 April 2015 at 03:43, Shannon Zhao wrote:
>> The ACPI table entry:
>> Method (_CBA, 0, NotSerialized) // _CBA: Configuration Base
>> Address
>> {
>> Return (0x3F00)
>&
lative distances
from Proximity Domain/Numa node i to every other
node j in the system (including itself).
Signed-off-by: Shannon Zhao
---
hw/arm/boot.c | 98 +++--
hw/arm/virt.c |7 +---
2 files changed, 9
Add a new function arm_generate_memory_dtb which is used to
generate memory dtb according to NUMA topology and set the
NUMA topology property of every cpu.
Signed-off-by: Shannon Zhao
---
hw/arm/boot.c | 80 ++--
1 files changed, 77
;
The socket Id(index 1) used first to calculate the associativity,
then follows the board id(index 0).
arm,associativity-reference-points = <0>;
Only the board Id(index 0) used to calculate the associativity.
arm,associativity-reference-points = &
To support memory NUMA, don't add memory node in creat_fdt.
But add it in a new function which takes into accout NUMA
topology.
Signed-off-by: Shannon Zhao
---
hw/arm/virt.c |2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index fd
Use memory_region_allocate_system_memory to allocate memory.
The function is sensitive to NUMA and can allocate memory
for NUMA topology.
Signed-off-by: Shannon Zhao
---
hw/arm/virt.c |5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
On 2015/1/6 10:37, Chen, Tiejun wrote:
> On 2015/1/5 20:14, Marcel Apfelbaum wrote:
>> On 01/05/2015 01:50 PM, Stefan Hajnoczi wrote:
>>> On Mon, Jan 5, 2015 at 11:37 AM, Jan Kiszka
>>> wrote:
On 2015-01-05 12:22, Stefan Hajnoczi wrote:
> Commit 49d2e648e8087d154d8bf8b91f27c8e05e79d5a6 ("
On 2015/1/6 17:55, Peter Maydell wrote:
> On 6 January 2015 at 05:57, Shannon Zhao wrote:
>> To support memory NUMA, don't add memory node in creat_fdt.
>> But add it in a new function which takes into accout NUMA
>> topology.
>>
>> Signed-off-by: Shannon
On 2015/1/6 17:58, Peter Maydell wrote:
> On 6 January 2015 at 05:57, Shannon Zhao wrote:
>> Add a new function arm_generate_memory_dtb which is used to
>> generate memory dtb according to NUMA topology and set the
>> NUMA topology property of every cpu.
>>
>
.
Is this the right direction? is there other ways to
make virtio-mmio support multiple irq? Hope for feedback.
Thanks.
Signed-off-by: Shannon Zhao
---
drivers/virtio/virtio_mmio.c | 234 --
1 files changed, 203 insertions(+), 31 deletions(-)
diff --
ry to make virtio-mmio work with vhost-net
on arm/arm64.
Shannon Zhao (4):
virtio-mmio: introduce set_host_notifier()
virtio-mmio: introduce set_guest_notifiers
virtio-mmio: start ioeventfd when status gets DRIVER_OK
virtio-mmio: add a new property for ioeventfd
hw/net/virtio-net.c|
Same as host notifier of virtio-mmio, most of codes came from virtio-pci.
The kvm-arm does not yet support irqfd, need to fix the hard-coded part after
kvm-arm gets irqfd support.
Signed-off-by: Ying-Shiuan Pan
Signed-off-by: Li Liu
Signed-off-by: Shannon Zhao
---
hw/virtio/virtio-mmio.c
Make ioeventfd could be enabled or disabled (default). Since ioeventfd
is not yet ready in kvm-arm, without this option, qemu will get a
problem if it attempts to initialize ioeventfd.
Signed-off-by: Ying-Shiuan Pan
Signed-off-by: Li Liu
Signed-off-by: Shannon Zhao
---
hw/net/virtio-net.c
set_host_notifier() is introduced into virtio-mmio now. Most of codes came
from virtio-pci.
Signed-off-by: Ying-Shiuan Pan
Signed-off-by: Li Liu
Signed-off-by: Shannon Zhao
---
hw/virtio/virtio-mmio.c | 70 +++
1 files changed, 70 insertions(+), 0
Signed-off-by: Ying-Shiuan Pan
Signed-off-by: Li Liu
Signed-off-by: Shannon Zhao
---
hw/virtio/virtio-mmio.c | 45 +
1 files changed, 45 insertions(+), 0 deletions(-)
diff --git a/hw/virtio/virtio-mmio.c b/hw/virtio/virtio-mmio.c
index b741f50
1 - 100 of 893 matches
Mail list logo