[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/2] Init vNVDIMM LSA if applicable
From: |
Robert Hoo |
Subject: |
[PATCH 0/2] Init vNVDIMM LSA if applicable |
Date: |
Tue, 29 Mar 2022 15:07:41 +0800 |
QEMU option "-device nvdimm,...,label-size=" designates a vNVDIMM with
Label Storage Area (LSA), where stores the namespace labels and conforms to
some format and rules defined by NVDIMM label protocol[1].
Recent guest Kernel, will by validating LSA to determine if the NVDIMM is
label-capable. So without initialization, guest Kernel will judge it
label-less, though it actually support label.
This patch set, is to init vNVDIMM's LSA, so that guest Kernel can
correctly identify and use it.
[1]:
https://uefi.org/sites/default/files/resources/ACPI_Spec_6_4_Jan22.pdf,
Section 13.19.
Robert Hoo (2):
NVDIMM: rename NVDIMM::label_size to NVDIMM::lsa_size
NVDIMM: Init vNVDIMM's LSA index block if it hasn't been
docs/nvdimm.txt | 4 +-
hw/acpi/nvdimm.c | 14 +-
hw/mem/nvdimm.c | 381 ++++++++++++++++++++++++++++++++++++++--
include/hw/mem/nvdimm.h | 108 +++++++++++-
4 files changed, 485 insertions(+), 22 deletions(-)
base-commit: 27fc9f365d6f60ff86c2e2be57289bb47a2be882
--
2.31.1