Skip to content

Commit 414dd2b

Browse files
rchatreKAGA-KOKO
authored andcommitted
x86/intel_rdt: Introduce new "exclusive" mode
At the moment all allocations are shareable. There is no way for a user to designate that an allocation associated with a resource group cannot be shared by another. Introduce the new mode "exclusive". When a resource group is marked as such it implies that no overlap is allowed between its allocation and that of another resource group. Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: fenghua.yu@intel.com Cc: tony.luck@intel.com Cc: vikas.shivappa@linux.intel.com Cc: gavin.hindman@intel.com Cc: jithu.joseph@intel.com Cc: dave.hansen@intel.com Cc: hpa@zytor.com Link: https://lkml.kernel.org/r/f6d24672a4280fe3b24cd2da9b5f50214439c1af.1529706536.git.reinette.chatre@intel.com
1 parent 95f0b77 commit 414dd2b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

arch/x86/kernel/cpu/intel_rdt.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ enum rdt_group_type {
8383
/**
8484
* enum rdtgrp_mode - Mode of a RDT resource group
8585
* @RDT_MODE_SHAREABLE: This resource group allows sharing of its allocations
86+
* @RDT_MODE_EXCLUSIVE: No sharing of this resource group's allocations allowed
8687
*
8788
* The mode of a resource group enables control over the allowed overlap
8889
* between allocations associated with different resource groups (classes
@@ -91,6 +92,7 @@ enum rdt_group_type {
9192
*/
9293
enum rdtgrp_mode {
9394
RDT_MODE_SHAREABLE = 0,
95+
RDT_MODE_EXCLUSIVE,
9496

9597
/* Must be last */
9698
RDT_NUM_MODES,

arch/x86/kernel/cpu/intel_rdt_rdtgroup.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ enum rdtgrp_mode rdtgroup_mode_by_closid(int closid)
161161

162162
static const char * const rdt_mode_str[] = {
163163
[RDT_MODE_SHAREABLE] = "shareable",
164+
[RDT_MODE_EXCLUSIVE] = "exclusive",
164165
};
165166

166167
/**

0 commit comments

Comments
 (0)