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

Re: [PATCH v4 4/6] xen/arm: mpu: Create boot-time MPU protection regions


  • To: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
  • From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
  • Date: Mon, 28 Oct 2024 15:37:39 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
  • 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=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=NqfAwqdnG8KYpUzcLVgdgjshztk5TvK+L1SxgKq1Nr0=; b=QlihNiiGMJ79/5be3U6xbdym+TImUUykPx0Zsy3Ap89veTh+EWsG2dyujFg5nmZJo/nu59oFXkhWb7Rc9MdBpiv6/DyDwlLYmGYoOdrNbPfGlGaY3tLQ+P5lr8h6RPUQRkFA38dSuXJJyjamLbqsNBHNvx/1y98Hn3FDFH+oMf/PUdTlWV+Sh3XDPywxD04g5u+mVg8fgM9U/9ceJlAoh8R8twEL+M9fuZotFUwxXaqhP3nsku6csQ9XQQqhwezMQl2pIUmBMWXV/vgWDiQLsRPB8/kuPC4O7s1TEAk6RIjP3zC0bl1nJfSJhdIsf3bVFvrEUx1VR9seDxXN/nWAmQ==
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=NqfAwqdnG8KYpUzcLVgdgjshztk5TvK+L1SxgKq1Nr0=; b=yHuPuTel1XHXjhTnG3cP0fJyPx1sHlYziIFXQht8DjYQUtxEsSAw99tcHjrAtQ+QMVR6l0wHqj8JmozuBCbNXQotPH0GzeDq6LBP2m2KzC0Z6s/ar1P0rm/BL2vnElBp2KVeHwdFRQbr6DdsyyJg7RNaPsw2k38BTy8k8Op0TaJiEbW1y2Ay8K8mTWTiij/kNQyMm9QB7kkVPDwAniJgp0U3W0vu8Iv9y6nefMXuM9+UqcB133dLCZVmo0K9aZvMneZ44hhSASnNvF2kNJhz+uC8kQXG0AtpCmOOWV4d5zR1j1KqL/n3UJ8KRvXARVXAaB+x3Mw3JX1ajyWkNh5o+w==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=FJR9cXPQkEpBJ5SGvW3jy4KBqq/6POlhKuDLp+4YXegc+RykaDkMQgMiK3SLUB+zJFCnVYzZxPlm4MXAjNz5O4Ef0jpYPBlqv3XSYbhabw7wdGw/jO0TKWx9pvcpdziZ3GUOvWvHHD4PNBMsYfoOa5IH8bPlzZy2/lj4KMDgrKvV1YbZaC2Rnv5+h0r7u7FSQ3wQ3EnSoQ1S+XDUa3R12HEGe0OD7qLhNo1fvMH3D12xC/AM0/+eDEjuIHbQiBtbd3rx8BxmQrucFET80MwItOc7g4umz3chTXjh9XSndcHfxkoZFei6Xm9nOq/55K2sdvubn2/P7w3waQeTklaeUQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=EAzV96h3EdEjv8xyRaGv1mMXZc0H14NtFXyA5QXF+tFpYfQbBXBQhAoixIDPiz+BRm6ys3CVtkHCjwrXdIYrNorqg23AVIl0Nz5qO9B+9OX5N5wudsOFXAktMpC8gijZf08QDB/O6sdWauL+9PgK7cs7hGytdUoRF9xHwqRqnYBHB7aq+Zr6flItQoNTkKJYAvXE9oS0PxyvxM6vA/5L5LxmbYlA6BQ2sidRkhV/BT9mFy/xUkaixma4mvDJoZYgec4PzbGlvdK6n8E4ql6YkKVSmWd/w4lhRuDJUO67yEcLd07c5Y7XF6xmeB6ppvsDNpXUjz6HDzv9+173SMEZfQ==
  • 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>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Mon, 28 Oct 2024 15:38:19 +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: AQHbKTd3r9ds8GMpC0a1KoGz65CsELKcRboAgAAGbQA=
  • Thread-topic: [PATCH v4 4/6] xen/arm: mpu: Create boot-time MPU protection regions

Hy Ayan,

>> +
>> +#define REGION_TEXT_PRBAR       0x38    /* SH=11 AP=10 XN=00 */
>> +#define REGION_RO_PRBAR         0x3A    /* SH=11 AP=10 XN=10 */
>> +#define REGION_DATA_PRBAR       0x32    /* SH=11 AP=00 XN=10 */
> 
> NIT: alignment
> 
>> +
>> +#define REGION_NORMAL_PRLAR     0x0f    /* NS=0 ATTR=111 EN=1 */
>> +
>> +/*
>> + * Macro to prepare and set a EL2 MPU memory region.
>> + * We will also create an according MPU memory region entry, which
>> + * is a structure of pr_t,  in table \prmap.
>> + *
>> + * Inputs:
>> + * sel:         region selector
>> + * base:        reg storing base address (should be page-aligned)
>> + * limit:       reg storing limit address
>> + * prbar:       store computed PRBAR_EL2 value
>> + * prlar:       store computed PRLAR_EL2 value
>> + * maxcount:    maximum number of EL2 regions supported
>> + * attr_prbar:  PRBAR_EL2-related memory attributes. If not specified it 
>> will be
>> + *              REGION_DATA_PRBAR
>> + * attr_prlar:  PRLAR_EL2-related memory attributes. If not specified it 
>> will be
>> + *              REGION_NORMAL_PRLAR
> 
> NIT: shall we also align the text after the colon?
> 

Please forget about these comments, I’ve applied your patches and everything 
looks good in terms of alignment,
I was misled by my mail client.

Cheers,
Luca 


 


Rackspace

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