[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 01/12] pc-dimm: put it into the 'storage' category
From: |
Pankaj Gupta |
Subject: |
Re: [PATCH v2 01/12] pc-dimm: put it into the 'storage' category |
Date: |
Mon, 30 Nov 2020 11:18:41 +0100 |
> The category of the pc-dimm device is not set, put it into the 'storage'
> category.
>
> Signed-off-by: Gan Qixin <ganqixin@huawei.com>
> ---
> Cc: Michael S. Tsirkin <mst@redhat.com>
> ---
> hw/mem/pc-dimm.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/hw/mem/pc-dimm.c b/hw/mem/pc-dimm.c
> index 2ffc986734..017146e3d1 100644
> --- a/hw/mem/pc-dimm.c
> +++ b/hw/mem/pc-dimm.c
> @@ -282,6 +282,7 @@ static void pc_dimm_class_init(ObjectClass *oc, void
> *data)
> mdc->get_plugged_size = memory_device_get_region_size;
> mdc->get_memory_region = pc_dimm_md_get_memory_region;
> mdc->fill_device_info = pc_dimm_md_fill_device_info;
> + set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
Any reason why pc-dimm would be in the storage category?
> }
>
> static TypeInfo pc_dimm_info = {
> --
> 2.23.0
>
>
- [PATCH v2 00/12] Categorize some uncategorized devices, Gan Qixin, 2020/11/30
- [PATCH v2 02/12] virtio-pmem: put it into the 'storage' category, Gan Qixin, 2020/11/30
- [PATCH v2 01/12] pc-dimm: put it into the 'storage' category, Gan Qixin, 2020/11/30
- Re: [PATCH v2 01/12] pc-dimm: put it into the 'storage' category,
Pankaj Gupta <=
- [PATCH v2 03/12] vmmouse: put it into the 'input' category, Gan Qixin, 2020/11/30
- [PATCH v2 05/12] mc146818rtc: put it into the 'misc' category, Gan Qixin, 2020/11/30
- [PATCH v2 04/12] nvdimm: put it into the 'storage' category, Gan Qixin, 2020/11/30
- [PATCH v2 06/12] ipmi: put some ipmi devices into the correct category, Gan Qixin, 2020/11/30
- [PATCH v2 07/12] tpm: put some tpm devices into the correct category, Gan Qixin, 2020/11/30
- [PATCH v2 08/12] AMDVI-PCI: put it into the 'misc' category, Gan Qixin, 2020/11/30
- [PATCH v2 11/12] spitz: put some Spitz-family devices into the correct category, Gan Qixin, 2020/11/30
- [PATCH v2 12/12] SPI flash devices: put them into the 'storage' category, Gan Qixin, 2020/11/30