From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752861AbcFCT1o (ORCPT ); Fri, 3 Jun 2016 15:27:44 -0400 Received: from mail-oi0-f47.google.com ([209.85.218.47]:33395 "EHLO mail-oi0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750994AbcFCT1f (ORCPT ); Fri, 3 Jun 2016 15:27:35 -0400 MIME-Version: 1.0 In-Reply-To: <1464938015-5489-1-git-send-email-jlee@suse.com> References: <1464938015-5489-1-git-send-email-jlee@suse.com> Date: Fri, 3 Jun 2016 12:27:34 -0700 Message-ID: Subject: Re: [PATCH] libnvdimm, nfit: treat volatile virtual CD region as read-only pmem From: Dan Williams To: "Lee, Chun-Yi" Cc: Ross Zwisler , "Rafael J. Wysocki" , "linux-nvdimm@lists.01.org" , Linux ACPI , "linux-kernel@vger.kernel.org" , "Lee, Chun-Yi" , Gary Lin Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 3, 2016 at 12:13 AM, Lee, Chun-Yi wrote: > This patch adds codes to treat a volatile virtual CD region as a > read-only pmem region, then read-only /dev/pmem* device can be mounted > with iso9660. > > It's useful to work with the httpboot in EFI firmware to pull a remote > ISO file to the local memory region for booting and installation. > > Wiki page of UEFI HTTPBoot with OVMF: > https://en.opensuse.org/UEFI_HTTPBoot_with_OVMF > > Signed-off-by: Lee, Chun-Yi > Cc: Gary Lin > Cc: Dan Williams > Cc: Ross Zwisler > Cc: "Rafael J. Wysocki" > --- > drivers/acpi/nfit.c | 8 +++++++- > drivers/nvdimm/region_devs.c | 26 +++++++++++++++++++++++++- > include/linux/libnvdimm.h | 2 ++ > 3 files changed, 34 insertions(+), 2 deletions(-) > > diff --git a/drivers/acpi/nfit.c b/drivers/acpi/nfit.c > index 2215fc8..b100a17 100644 > --- a/drivers/acpi/nfit.c > +++ b/drivers/acpi/nfit.c > @@ -1949,6 +1949,7 @@ static int acpi_nfit_init_mapping(struct acpi_nfit_desc *acpi_desc, > switch (nfit_spa_type(spa)) { > case NFIT_SPA_PM: > case NFIT_SPA_VOLATILE: > + case NFIT_SPA_VCD: > nd_mapping->start = memdev->address; > nd_mapping->size = memdev->region_size; > break; Why do we need to distinguish NFIT_SPA_VOLATILE vs NFIT_SPA_VCD, i.e. what happens if something writes to a VCD device?