qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v5 3/4] spapr: Add NVDIMM device support


From: Shivaprasad G Bhat
Subject: Re: [PATCH v5 3/4] spapr: Add NVDIMM device support
Date: Mon, 10 Feb 2020 10:25:00 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2


On 02/04/2020 09:29 AM, David Gibson wrote:
On Thu, Jan 30, 2020 at 05:48:15AM -0600, Shivaprasad G Bhat wrote:
Add support for NVDIMM devices for sPAPR. Piggyback on existing nvdimm
device interface in QEMU to support virtual NVDIMM devices for Power.
Create the required DT entries for the device (some entries have
dummy values right now).

The patch creates the required DT node and sends a hotplug
interrupt to the guest. Guest is expected to undertake the normal
DR resource add path in response and start issuing PAPR SCM hcalls.

+                       " must be a multiple of %" PRIu64 "MB",
+                       SPAPR_MINIMUM_SCM_BLOCK_SIZE / MiB);
+            return;
+        }
+
+        uuidstr = object_property_get_str(OBJECT(dimm), NVDIMM_UUID_PROP, 
NULL);
+        qemu_uuid_parse(uuidstr, &uuid);
Uh.. couldn't we just look at nvdimm->uuid, rather than getting the
string property and parsing it again?

Addressing all except this one as discussed. Posting the next version in a while.

Thanks,
Shivaprasad




reply via email to

[Prev in Thread] Current Thread [Next in Thread]