Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1195659

Re: [Qemu-devel] [PATCH v2] arm: change vendor ID for virtio-mmio

From Shannon Zhao <shannon.zhao@linaro.org>
Newsgroups linux.kernel
Subject Re: [Qemu-devel] [PATCH v2] arm: change vendor ID for virtio-mmio
Date 2015-07-30 03:30 +0200
Message-ID <pRKPv-9Z-5@gated-at.bofh.it> (permalink)
References <pRF3s-pr-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



On 2015/7/30 3:16, Michael S. Tsirkin wrote:
> ACPI spec 5.0 allows the use of PCI vendor IDs.
> 
But virtio-mmio is not a PCI device, it's a platform device.
Why do we drop the previous way using "QEMUXXXX"? Something I missed?

> Since we have one for virtio, it seems neater to use that
> rather than LNRO. For the device ID, use 103F which is a legacy ID that
> isn't used in virtio PCI spec - seems to make sense since virtio-mmio is
> a legacy device but we don't know the correct device type.
> 
> Guests should probably match everything in the range 1000-103F
> (just like legacy pci drivers do) which will allow us to pass in the
> actual ID in the future if we want to.
> 
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> ---
>  hw/arm/virt-acpi-build.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c
> index f365140..dea61ba 100644
> --- a/hw/arm/virt-acpi-build.c
> +++ b/hw/arm/virt-acpi-build.c
> @@ -145,7 +145,7 @@ static void acpi_dsdt_add_virtio(Aml *scope,
>  
>      for (i = 0; i < num; i++) {
>          Aml *dev = aml_device("VR%02u", i);
> -        aml_append(dev, aml_name_decl("_HID", aml_string("LNRO0005")));
> +        aml_append(dev, aml_name_decl("_HID", aml_string("1AF4103F")));
>          aml_append(dev, aml_name_decl("_UID", aml_int(i)));
>  
>          Aml *crs = aml_resource_template();
> 

-- 
Shannon
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2] arm: change vendor ID for virtio-mmio "Michael S. Tsirkin" <mst@redhat.com> - 2015-07-29 21:20 +0200
  Re: [Qemu-devel] [PATCH v2] arm: change vendor ID for virtio-mmio Shannon Zhao <shannon.zhao@linaro.org> - 2015-07-30 03:30 +0200
    Re: [Qemu-devel] [PATCH v2] arm: change vendor ID for virtio-mmio "Michael S. Tsirkin" <mst@redhat.com> - 2015-07-30 10:10 +0200
      Re: [Qemu-devel] [PATCH v2] arm: change vendor ID for virtio-mmio Peter Maydell <peter.maydell@linaro.org> - 2015-07-30 11:30 +0200
        Re: [Qemu-devel] [PATCH v2] arm: change vendor ID for virtio-mmio G Gregory <graeme.gregory@linaro.org> - 2015-07-30 11:40 +0200
          Re: [Qemu-devel] [PATCH v2] arm: change vendor ID for virtio-mmio G Gregory <graeme.gregory@linaro.org> - 2015-07-30 11:50 +0200
        Re: [Qemu-devel] [PATCH v2] arm: change vendor ID for virtio-mmio "Michael S. Tsirkin" <mst@redhat.com> - 2015-07-30 17:10 +0200
      Re: [Qemu-devel] [PATCH v2] arm: change vendor ID for virtio-mmio Shannon Zhao <zhaoshenglong@huawei.com> - 2015-07-30 11:30 +0200
        Re: [Qemu-devel] [PATCH v2] arm: change vendor ID for virtio-mmio "Michael S. Tsirkin" <mst@redhat.com> - 2015-07-30 17:10 +0200
  Re: [Qemu-devel] [PATCH v2] arm: change vendor ID for virtio-mmio Andrew Jones <drjones@redhat.com> - 2015-08-03 14:20 +0200

csiph-web