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

Re: [PATCH v4 02/13] xen/arm: Introduce 'choice' for memory system architecture


  • To: Ayan Kumar Halder <ayankuma@xxxxxxx>
  • From: Henry Wang <Henry.Wang@xxxxxxx>
  • Date: Tue, 8 Aug 2023 02:01:17 +0000
  • Accept-language: zh-CN, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kVh67N903PEeqgYmoTVepU8+1oMgWaDdvrubCIM5/DY=; b=mejGeM5BzK6YAw9/MgYyfGx76tNLHWUnL/g6kJpmZKrU63sLvI8IOa7WD2fJ6nV8R/HqzJgK83dOHw6khzdd79uP0ZuQtg/joP5BRbi6yjZMlfsBNFWOvVo1vOzaHaOlxE8qET7vZNVYsSeu6XapbhWLrMgAQnjdPvCC9kEwaDGAkHB0x4OvNx3n7ZIyadBIHbqj6y1SHosnnKe1brWkpKC9z3mAoTvlG5VJqlURUdNG9ZvoLyaixDlmezOrr2O2nkDZPNkvbU9rCXGI7LFYWoBciZ1+RzAJI1ZTZRF8GOxWCquSCpiZAI9Xp3PnRXk5SzPhgHDXbeHboo5nhyGknQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cjcT06M2F8jsPISg5M6zYHlM4+/2HZuXozqk8mo9fYXRA+/pEV/5RHEczwZaR1qU0n8oS0yGlubxF3Sne4f8TU8xlhMjRy/inl/+YWecutCzt69xWvEg9LQVuxlO5Aj0uaSIGMI/LBmlI3JNpiuhSOIvca/EKK+GZ1pnvy0dJ5+o9DWA59TUHCZrVrITOEgTUQmBVCnlFhoLuEi0jW0NUXbYM4sfMsxsw+F09Zh1QGm8z+mYwzXwW+OWrFCGu+1YJRLwMTKDSeDhEawuJzQDvSduPMRmBWQ2rbUOcruqZTJLfCvrIMxfEj1HmSZ1trkegotMw9rhJ4SNoLH3uYPeIw==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Wei Chen <Wei.Chen@xxxxxxx>, Penny Zheng <Penny.Zheng@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Julien Grall <jgrall@xxxxxxxxxx>
  • Delivery-date: Tue, 08 Aug 2023 02:02:15 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHZxCqJmtSfvrOVyE67LM5R2F23xa/e2swAgADVQQA=
  • Thread-topic: [PATCH v4 02/13] xen/arm: Introduce 'choice' for memory system architecture

Hi Ayan,

> On Aug 7, 2023, at 21:17, Ayan Kumar Halder <ayankuma@xxxxxxx> wrote:
> 
> Hi Henry,
> 
> On 01/08/2023 04:44, Henry Wang wrote:
>> CAUTION: This message has originated from an External Source. Please use 
>> proper judgment and caution when opening attachments, clicking links, or 
>> responding to this email.
>> 
>> 
>> There are two types of memory system architectures available for
>> Arm-based systems, namely the Virtual Memory System Architecture (VMSA)
>> and the Protected Memory System Architecture (PMSA). According to
>> ARM DDI 0487G.a, A VMSA provides a Memory Management Unit (MMU) that
>> controls address translation, access permissions, and memory attribute
>> determination and checking, for memory accesses made by the PE. And
>> refer to ARM DDI 0600A.c, the PMSA supports a unified memory protection
>> scheme where an Memory Protection Unit (MPU) manages instruction and
>> data access. Currently, Xen only suuports VMSA.
>> 
>> As a preparation of the Xen MPU (PMSA) support. Introduce a Kconfig
>> choice under the "Architecture Features" menu for user to choose the
>> memory system architecture for the system. Since currently only VMSA
>> is supported, only add the bool CONFIG_HAS_MMU to keep consistent with
>> the default behavior. User can choose either VMSA or PMSA but not both
>> in the future after PMSA/MPU is supported in Xen.
>> 
>> Suggested-by: Julien Grall <jgrall@xxxxxxxxxx>
>> Signed-off-by: Henry Wang <Henry.Wang@xxxxxxx>
> 
> The patch looks good, but it does not cleanly apply
> 
> b4 mbox 20230801034419.2047541-3-Henry.Wang@xxxxxxx
> 
> git am ./20230801034419.2047541-3-Henry.Wang@xxxxxxxxxxx
> 
> Applying: xen/arm: Introduce 'choice' for memory system architecture
> error: xen/arch/arm/Kconfig: does not match index
> Patch failed at 0001 xen/arm: Introduce 'choice' for memory system 
> architecture

This is weird, so I tried to apply this patch (by clicking the mbox button on 
the top
right of [1]) on top of
65f0d6fc80 x86: Drop opt_pku entirely

and below is what I have:

$ git am 
~/v4-02-13-xen-arm-Introduce-choice-for-memory-system-architecture.patch
Applying: xen/arm: Introduce 'choice' for memory system architecture

I suspect recently there is some Kconfig changes, so could you please clarify 
your
base commit? Thanks!

[1] 
https://patchwork.kernel.org/project/xen-devel/patch/20230801034419.2047541-3-Henry.Wang@xxxxxxx/

Kind regards,
Henry

> 
> - Ayan




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.