* linux-next: manual merge of the kvm-x86 tree with Linus' tree
@ 2025-07-09 6:04 Stephen Rothwell
2025-07-09 7:11 ` Stephen Rothwell
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Rothwell @ 2025-07-09 6:04 UTC (permalink / raw)
To: Sean Christopherson
Cc: Borislav Petkov (AMD),
Linux Kernel Mailing List, Linux Next Mailing List
[-- Attachment #1: Type: text/plain, Size: 1321 bytes --]
Hi all,
Today's linux-next merge of the kvm-x86 tree got a conflict in:
arch/x86/kvm/vmx/vmx.c
between commit:
f9af88a3d384 ("x86/bugs: Rename MDS machinery to something more generic")
from Linus' tree and commit:
83ebe7157483 ("KVM: VMX: Apply MMIO Stale Data mitigation if KVM maps MMIO into the guest")
from the kvm-x86 tree.
I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging. You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.
--
Cheers,
Stephen Rothwell
diff --cc arch/x86/kvm/vmx/vmx.c
index 191a9ed0da22,65949882afa9..000000000000
--- a/arch/x86/kvm/vmx/vmx.c
+++ b/arch/x86/kvm/vmx/vmx.c
@@@ -7290,8 -7210,8 +7210,7 @@@ static noinstr void vmx_vcpu_enter_exit
if (static_branch_unlikely(&vmx_l1d_should_flush))
vmx_l1d_flush(vcpu);
else if (static_branch_unlikely(&cpu_buf_vm_clear) &&
- kvm_arch_has_assigned_device(vcpu->kvm))
- (flags & VMX_RUN_CLEAR_CPU_BUFFERS_FOR_MMIO))
- mds_clear_cpu_buffers();
+ x86_clear_cpu_buffers();
vmx_disable_fb_clear(vmx);
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: linux-next: manual merge of the kvm-x86 tree with Linus' tree
2025-07-09 6:04 linux-next: manual merge of the kvm-x86 tree with Linus' tree Stephen Rothwell
@ 2025-07-09 7:11 ` Stephen Rothwell
2025-07-09 11:02 ` Borislav Petkov
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Rothwell @ 2025-07-09 7:11 UTC (permalink / raw)
To: Sean Christopherson
Cc: Borislav Petkov (AMD),
Linux Kernel Mailing List, Linux Next Mailing List
[-- Attachment #1: Type: text/plain, Size: 1484 bytes --]
Hi all,
On Wed, 9 Jul 2025 16:04:56 +1000 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> Today's linux-next merge of the kvm-x86 tree got a conflict in:
>
> arch/x86/kvm/vmx/vmx.c
>
> between commit:
>
> f9af88a3d384 ("x86/bugs: Rename MDS machinery to something more generic")
>
> from Linus' tree and commit:
>
> 83ebe7157483 ("KVM: VMX: Apply MMIO Stale Data mitigation if KVM maps MMIO into the guest")
>
> from the kvm-x86 tree.
>
> I fixed it up (see below) and can carry the fix as necessary. This
> is now fixed as far as linux-next is concerned, but any non trivial
> conflicts should be mentioned to your upstream maintainer when your tree
> is submitted for merging. You may also want to consider cooperating
> with the maintainer of the conflicting tree to minimise any particularly
> complex conflicts.
Actually, the resolution is below.
--
Cheers,
Stephen Rothwell
diff --cc arch/x86/kvm/vmx/vmx.c
index 191a9ed0da22,65949882afa9..47019c9af671
--- a/arch/x86/kvm/vmx/vmx.c
+++ b/arch/x86/kvm/vmx/vmx.c
@@@ -7290,8 -7210,8 +7210,8 @@@ static noinstr void vmx_vcpu_enter_exit
if (static_branch_unlikely(&vmx_l1d_should_flush))
vmx_l1d_flush(vcpu);
else if (static_branch_unlikely(&cpu_buf_vm_clear) &&
- kvm_arch_has_assigned_device(vcpu->kvm))
+ (flags & VMX_RUN_CLEAR_CPU_BUFFERS_FOR_MMIO))
- mds_clear_cpu_buffers();
+ x86_clear_cpu_buffers();
vmx_disable_fb_clear(vmx);
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: linux-next: manual merge of the kvm-x86 tree with Linus' tree
2025-07-09 7:11 ` Stephen Rothwell
@ 2025-07-09 11:02 ` Borislav Petkov
0 siblings, 0 replies; 4+ messages in thread
From: Borislav Petkov @ 2025-07-09 11:02 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Sean Christopherson, Linux Kernel Mailing List, Linux Next Mailing List
On Wed, Jul 09, 2025 at 05:11:15PM +1000, Stephen Rothwell wrote:
> Hi all,
>
> On Wed, 9 Jul 2025 16:04:56 +1000 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> >
> > Today's linux-next merge of the kvm-x86 tree got a conflict in:
> >
> > arch/x86/kvm/vmx/vmx.c
> >
> > between commit:
> >
> > f9af88a3d384 ("x86/bugs: Rename MDS machinery to something more generic")
> >
> > from Linus' tree and commit:
> >
> > 83ebe7157483 ("KVM: VMX: Apply MMIO Stale Data mitigation if KVM maps MMIO into the guest")
> >
> > from the kvm-x86 tree.
> >
> > I fixed it up (see below) and can carry the fix as necessary. This
> > is now fixed as far as linux-next is concerned, but any non trivial
> > conflicts should be mentioned to your upstream maintainer when your tree
> > is submitted for merging. You may also want to consider cooperating
> > with the maintainer of the conflicting tree to minimise any particularly
> > complex conflicts.
>
> Actually, the resolution is below.
>
> --
> Cheers,
> Stephen Rothwell
>
> diff --cc arch/x86/kvm/vmx/vmx.c
> index 191a9ed0da22,65949882afa9..47019c9af671
> --- a/arch/x86/kvm/vmx/vmx.c
> +++ b/arch/x86/kvm/vmx/vmx.c
> @@@ -7290,8 -7210,8 +7210,8 @@@ static noinstr void vmx_vcpu_enter_exit
> if (static_branch_unlikely(&vmx_l1d_should_flush))
> vmx_l1d_flush(vcpu);
> else if (static_branch_unlikely(&cpu_buf_vm_clear) &&
> - kvm_arch_has_assigned_device(vcpu->kvm))
> + (flags & VMX_RUN_CLEAR_CPU_BUFFERS_FOR_MMIO))
> - mds_clear_cpu_buffers();
> + x86_clear_cpu_buffers();
>
> vmx_disable_fb_clear(vmx);
>
Yap, LGTM.
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
^ permalink raw reply [flat|nested] 4+ messages in thread
* linux-next: manual merge of the kvm-x86 tree with Linus' tree
@ 2025-09-12 3:14 Stephen Rothwell
0 siblings, 0 replies; 4+ messages in thread
From: Stephen Rothwell @ 2025-09-12 3:14 UTC (permalink / raw)
To: Sean Christopherson
Cc: Dave Hansen, Linux Kernel Mailing List, Linux Next Mailing List,
Pawan Gupta, Xin Li
[-- Attachment #1: Type: text/plain, Size: 1539 bytes --]
Hi all,
Today's linux-next merge of the kvm-x86 tree got a conflict in:
arch/x86/include/asm/cpufeatures.h
between commit:
2f8f173413f1 ("x86/vmscape: Add conditional IBPB mitigation")
from Linus' tree and commit:
3c7cb8414533 ("x86/cpufeatures: Add a CPU feature bit for MSR immediate form instructions")
from the kvm-x86 tree.
I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging. You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.
--
Cheers,
Stephen Rothwell
diff --cc arch/x86/include/asm/cpufeatures.h
index 751ca35386b0,8738bd783de2..000000000000
--- a/arch/x86/include/asm/cpufeatures.h
+++ b/arch/x86/include/asm/cpufeatures.h
@@@ -495,7 -496,7 +496,8 @@@
#define X86_FEATURE_TSA_SQ_NO (21*32+11) /* AMD CPU not vulnerable to TSA-SQ */
#define X86_FEATURE_TSA_L1_NO (21*32+12) /* AMD CPU not vulnerable to TSA-L1 */
#define X86_FEATURE_CLEAR_CPU_BUF_VM (21*32+13) /* Clear CPU buffers using VERW before VMRUN */
-#define X86_FEATURE_MSR_IMM (21*32+14) /* MSR immediate form instructions */
+#define X86_FEATURE_IBPB_EXIT_TO_USER (21*32+14) /* Use IBPB on exit-to-userspace, see VMSCAPE bug */
++#define X86_FEATURE_MSR_IMM (21*32+15) /* MSR immediate form instructions */
/*
* BUG word(s)
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-09-12 3:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-09 6:04 linux-next: manual merge of the kvm-x86 tree with Linus' tree Stephen Rothwell
2025-07-09 7:11 ` Stephen Rothwell
2025-07-09 11:02 ` Borislav Petkov
2025-09-12 3:14 Stephen Rothwell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®