Babu Moger 296d5a17e7 KVM: SEV-ES: Use V_TSC_AUX if available instead of RDTSC/MSR_TSC_AUX intercepts
The TSC_AUX virtualization feature allows AMD SEV-ES guests to securely use
TSC_AUX (auxiliary time stamp counter data) in the RDTSCP and RDPID
instructions. The TSC_AUX value is set using the WRMSR instruction to the
TSC_AUX MSR (0xC0000103). It is read by the RDMSR, RDTSCP and RDPID
instructions. If the read/write of the TSC_AUX MSR is intercepted, then
RDTSCP and RDPID must also be intercepted when TSC_AUX virtualization
is present. However, the RDPID instruction can't be intercepted. This means
that when TSC_AUX virtualization is present, RDTSCP and TSC_AUX MSR
read/write must not be intercepted for SEV-ES (or SEV-SNP) guests.

Signed-off-by: Babu Moger <babu.moger@amd.com>
Message-Id: <165040164424.1399644.13833277687385156344.stgit@bmoger-ubuntu>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-04-29 12:49:15 -04:00
..
2022-01-16 16:15:14 +02:00
2021-10-20 22:35:04 +02:00
2021-03-18 15:31:53 +01:00
2020-01-23 10:41:20 -08:00
2021-03-18 15:31:53 +01:00
2021-09-08 15:32:35 -07:00
2022-03-15 10:32:39 +01:00
2020-05-07 16:06:20 +02:00
2022-03-15 10:32:40 +01:00
2021-12-11 09:09:47 +01:00
2021-10-28 23:25:26 +02:00
2020-10-28 20:26:25 +01:00
2021-10-05 21:48:30 +02:00
2020-11-26 12:58:56 +01:00
2020-11-06 23:14:58 +01:00
2021-02-24 16:32:23 -08:00
2021-05-12 14:54:56 +02:00
2020-12-15 23:58:04 -08:00
2021-12-11 09:09:45 +01:00
2020-09-16 16:52:28 +02:00
2022-01-16 15:53:00 +02:00
2021-12-11 09:09:47 +01:00
2020-10-14 11:42:04 -07:00
2021-12-11 09:09:45 +01:00
2022-03-15 10:32:36 +01:00
2022-03-25 13:02:05 -07:00
2021-07-01 11:06:03 -07:00
2022-03-15 10:32:35 +01:00
2021-12-11 09:09:49 +01:00
2021-12-11 09:09:45 +01:00
2019-04-10 09:53:31 +02:00
2020-03-21 16:03:25 +01:00
2022-03-21 14:17:20 -07:00
2020-11-17 14:36:13 +01:00
2020-08-10 19:07:44 -07:00
2022-01-30 21:17:00 -05:00
2022-01-30 21:17:00 -05:00
2020-03-23 18:45:14 +01:00
2020-01-14 12:20:58 +01:00