compel: shstk: save CET state when CPU supports it

Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
This commit is contained in:
Mike Rapoport (IBM) 2022-03-21 09:34:41 +02:00 committed by Andrei Vagin
parent 17f4dd0959
commit 6e491a19a3
7 changed files with 111 additions and 2 deletions

View file

@ -41,6 +41,11 @@ message user_x86_regs_entry {
optional user_x86_regs_mode mode = 28 [default = NATIVE];
}
message user_x86_cet_entry {
required uint64 cet = 1[(criu).hex = true];
required uint64 ssp = 2[(criu).hex = true];
}
message user_x86_xsave_entry {
/* standard xsave features */
required uint64 xstate_bv = 1;
@ -60,6 +65,9 @@ message user_x86_xsave_entry {
/* Protected keys */
repeated uint32 pkru = 8;
/* CET */
optional user_x86_cet_entry cet = 9;
/*
* Processor trace (PT) and hardware duty cycling (HDC)
* are supervisor state components and only managed by