Commit 7ddf3144 authored by Isaku Yamahata's avatar Isaku Yamahata Committed by Paolo Bonzini
Browse files

KVM: x86: Move KVM_MAX_MCE_BANKS to header file



Move KVM_MAX_MCE_BANKS to header file so that it can be used for TDX in
a future patch.

Signed-off-by: default avatarIsaku Yamahata <isaku.yamahata@intel.com>
[binbin: split into new patch]
Signed-off-by: default avatarBinbin Wu <binbin.wu@linux.intel.com>
Message-ID: <20250227012021.1778144-8-binbin.wu@linux.intel.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 5cf7239b
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -90,7 +90,6 @@
#include "trace.h"

#define MAX_IO_MSRS 256
#define KVM_MAX_MCE_BANKS 32

/*
 * Note, kvm_caps fields should *never* have default values, all fields must be
+2 −0
Original line number Diff line number Diff line
@@ -10,6 +10,8 @@
#include "kvm_emulate.h"
#include "cpuid.h"

#define KVM_MAX_MCE_BANKS 32

struct kvm_caps {
	/* control of guest tsc rate supported? */
	bool has_tsc_control;