Re: remove set_fs for UML

hch
2021-12-22T08:17:57Z

On Tue, Dec 21, 2021 at 10:05:03PM +0100, Richard Weinberger wrote:
> So far UML seems to work with these changes applied. :-)
> I have applied both patches to my UML tree for now, I assume x86 maintainers are fine with
> patch 1/2?

Looks like patch 1 needs this fixup for some configurations, where
pci.h doesn't get pulled into kvm by other means.

But we probably want an ACK from the x86 maintainers to be sure anyway..

diff --git a/arch/x86/kvm/mmu/spte.c b/arch/x86/kvm/mmu/spte.c
index 0c76c45fdb686..fad546df0bbac 100644
--- a/arch/x86/kvm/mmu/spte.c
+++ b/arch/x86/kvm/mmu/spte.c
@@ -16,6 +16,7 @@
#include "spte.h"

#include <asm/e820/api.h>
+#include <asm/memtype.h>
#include <asm/vmx.h>

static bool __read_mostly enable_mmio_caching = true;