[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-arm] [Qemu-devel] [PATCH v2 2/4] hw/arm/virt: Declare virtio-m
From: |
Shannon Zhao |
Subject: |
Re: [Qemu-arm] [Qemu-devel] [PATCH v2 2/4] hw/arm/virt: Declare virtio-mmio as dma cache coherent in ACPI |
Date: |
Fri, 10 Feb 2017 10:49:20 +0800 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
On 2017/2/9 20:53, Alexander Graf wrote:
> Virtio-mmio devices can directly access guest memory and do so in cache
> coherent fashion. Tell the guest about that fact when it's using ACPI.
>
> Signed-off-by: Alexander Graf <address@hidden>
> ---
> hw/arm/virt-acpi-build.c | 1 +
> 1 file changed, 1 insertion(+)
>
Reviewed-by: Shannon Zhao <address@hidden>
> diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c
> index 07a10ac..8955a9d 100644
> --- a/hw/arm/virt-acpi-build.c
> +++ b/hw/arm/virt-acpi-build.c
> @@ -135,6 +135,7 @@ static void acpi_dsdt_add_virtio(Aml *scope,
> Aml *dev = aml_device("VR%02u", i);
> aml_append(dev, aml_name_decl("_HID", aml_string("LNRO0005")));
> aml_append(dev, aml_name_decl("_UID", aml_int(i)));
> + aml_append(dev, aml_name_decl("_CCA", aml_int(1)));
>
> Aml *crs = aml_resource_template();
> aml_append(crs, aml_memory32_fixed(base, size, AML_READ_WRITE));
>
--
Shannon
- [Qemu-arm] [PATCH v2 0/4] target-arm: Add some omitted dma cache coherency flags, Alexander Graf, 2017/02/09
- [Qemu-arm] [PATCH v2 2/4] hw/arm/virt: Declare virtio-mmio as dma cache coherent in ACPI, Alexander Graf, 2017/02/09
- Re: [Qemu-arm] [Qemu-devel] [PATCH v2 2/4] hw/arm/virt: Declare virtio-mmio as dma cache coherent in ACPI,
Shannon Zhao <=
- [Qemu-arm] [PATCH v2 4/4] hw/arm/virt: Declare fwcfg as dma cache coherent in dt, Alexander Graf, 2017/02/09
- [Qemu-arm] [PATCH v2 3/4] hw/arm/virt: Declare fwcfg as dma cache coherent in ACPI, Alexander Graf, 2017/02/09
- [Qemu-arm] [PATCH v2 1/4] target-arm: Declare virtio-mmio as dma-coherent in dt, Alexander Graf, 2017/02/09
- Re: [Qemu-arm] [PATCH v2 0/4] target-arm: Add some omitted dma cache coherency flags, Laszlo Ersek, 2017/02/09
- Re: [Qemu-arm] [PATCH v2 0/4] target-arm: Add some omitted dma cache coherency flags, Ard Biesheuvel, 2017/02/09
- Re: [Qemu-arm] [PATCH v2 0/4] target-arm: Add some omitted dma cache coherency flags, Peter Maydell, 2017/02/10