Commit b2e92ab
KVM/x86: Export RFDS_NO and RFDS_CLEAR to guests
commit 2a01801 upstream.
Mitigation for RFDS requires RFDS_CLEAR capability which is enumerated
by MSR_IA32_ARCH_CAPABILITIES bit 27. If the host has it set, export it
to guests so that they can deploy the mitigation.
RFDS_NO indicates that the system is not vulnerable to RFDS, export it
to guests so that they don't deploy the mitigation unnecessarily. When
the host is not affected by X86_BUG_RFDS, but has RFDS_NO=0, synthesize
RFDS_NO to the guest.
Signed-off-by: Pawan Gupta <[email protected]>
Signed-off-by: Dave Hansen <[email protected]>
Reviewed-by: Thomas Gleixner <[email protected]>
Acked-by: Josh Poimboeuf <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent d405b9c commit b2e92ab
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1613 | 1613 | | |
1614 | 1614 | | |
1615 | 1615 | | |
1616 | | - | |
| 1616 | + | |
| 1617 | + | |
1617 | 1618 | | |
1618 | 1619 | | |
1619 | 1620 | | |
| |||
1650 | 1651 | | |
1651 | 1652 | | |
1652 | 1653 | | |
| 1654 | + | |
| 1655 | + | |
1653 | 1656 | | |
1654 | 1657 | | |
1655 | 1658 | | |
| |||
0 commit comments