Re: [PATCH] target/i386: Export RFDS bit to guests

2024-03-19 Thread Pawan Gupta
On Wed, Mar 20, 2024 at 08:23:39AM +0800, Xiaoyao Li wrote: > On 3/19/2024 11:08 PM, Pawan Gupta wrote: > > On Tue, Mar 19, 2024 at 12:22:08PM +0800, Xiaoyao Li wrote: > > > On 3/13/2024 10:53 PM, Pawan Gupta wrote: > > > > Register File Data Sampling (RFDS) is a

Re: [PATCH] target/i386: Export RFDS bit to guests

2024-03-19 Thread Pawan Gupta
On Tue, Mar 19, 2024 at 12:22:08PM +0800, Xiaoyao Li wrote: > On 3/13/2024 10:53 PM, Pawan Gupta wrote: > > Register File Data Sampling (RFDS) is a CPU side-channel vulnerability > > that may expose stale register value. CPUs that set RFDS_NO bit in MSR > > IA32_ARCH_

Re: [PATCH] target/i386: Export RFDS bit to guests

2024-03-17 Thread Pawan Gupta
backgrounds: > https://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guidance/advisory-guidance/register-file-data-sampling.html) > > > Signed-off-by: Pawan Gupta > > --- > > target/i386/cpu.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2

[PATCH] target/i386: Export RFDS bit to guests

2024-03-13 Thread Pawan Gupta
to help mitigate RFDS. Make RFDS_CLEAR and RFDS_NO bits available to guests. Signed-off-by: Pawan Gupta --- target/i386/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 9a210d8d9290..693a5e0fb2ce 100644 --- a/target/i386

[PATCH v2] target/i386: Export GDS_NO bit to guests

2023-08-14 Thread Pawan Gupta
/camgffemg6tnq0n3+4ojagxc8j0oevy60khzekxcbs3lok9v...@mail.gmail.com/ Reported-by: Jack Wang Signed-off-by: Pawan Gupta Tested-by: Jack Wang Tested-by: Daniel Sneddon --- v2: Added commit tags v1: https://lore.kernel.org/qemu-devel/c373f3f92b542b738f296d44bb6a916a1cded7bd.1691774049.git.pawan.kumar.gu

[PATCH] target/i386: Export GDS_NO bit to guests

2023-08-11 Thread Pawan Gupta
Gather Data Sampling (GDS) is a side-channel attack using Gather instructions. Some Intel processors will set ARCH_CAP_GDS_NO bit in MSR IA32_ARCH_CAPABILITIES to report that they are not vulnerable to GDS. Make this bit available to guests. Signed-off-by: Pawan Gupta --- This is just compile

[PATCH] target/i386: Export MSR_ARCH_CAPABILITIES bits to guests

2023-06-23 Thread Pawan Gupta
. Signed-off-by: Pawan Gupta --- target/i386/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 1242bd541a53..66d6062aea7c 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -1049,10 +1049,10 @@ FeatureWordInfo

[PATCH] target/i386: Export TAA_NO bit to guests

2019-11-19 Thread Pawan Gupta
this bit available to guests. Signed-off-by: Pawan Gupta --- target/i386/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index a624163ac2cd..af84b04951cf 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -1205,7 +1205,7 @@ static