summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/pseries/vas.h
diff options
context:
space:
mode:
authorHaren Myneni <haren@linux.ibm.com>2022-02-28 17:12:04 -0800
committerMichael Ellerman <mpe@ellerman.id.au>2022-03-08 00:04:55 +1100
commit976410cd2cb4c6ed53bd12c192fc46bbcc0fbce7 (patch)
tree40c5dae7af8fcff41163f21ae12a6202845a5cf3 /arch/powerpc/platforms/pseries/vas.h
parent40562fe4fa3d94c7462ec909ab89b075e26c59ac (diff)
downloadlinux-976410cd2cb4c6ed53bd12c192fc46bbcc0fbce7.tar.gz
linux-976410cd2cb4c6ed53bd12c192fc46bbcc0fbce7.tar.bz2
linux-976410cd2cb4c6ed53bd12c192fc46bbcc0fbce7.zip
powerpc/pseries/vas: Save PID in pseries_vas_window struct
The kernel sets the VAS window with PID when it is opened in the hypervisor. During DLPAR operation, windows can be closed and reopened in the hypervisor when the credit is available. So saves this PID in pseries_vas_window struct when the window is opened initially and reuse it later during DLPAR operation. Signed-off-by: Haren Myneni <haren@linux.ibm.com> Reviewed-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/a57cbe6d292fe49ad55a0b49c5679d6a24d8fe73.camel@linux.ibm.com
Diffstat (limited to 'arch/powerpc/platforms/pseries/vas.h')
-rw-r--r--arch/powerpc/platforms/pseries/vas.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/pseries/vas.h b/arch/powerpc/platforms/pseries/vas.h
index d6ea8ab8b07a..2872532ed72a 100644
--- a/arch/powerpc/platforms/pseries/vas.h
+++ b/arch/powerpc/platforms/pseries/vas.h
@@ -114,6 +114,7 @@ struct pseries_vas_window {
u64 domain[6]; /* Associativity domain Ids */
/* this window is allocated */
u64 util;
+ u32 pid; /* PID associated with this window */
/* List of windows opened which is used for LPM */
struct list_head win_list;