Skip to content

Commit 7ddf314

Browse files
yamahatabonzini
authored andcommitted
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: Isaku Yamahata <isaku.yamahata@intel.com> [binbin: split into new patch] Signed-off-by: Binbin Wu <binbin.wu@linux.intel.com> Message-ID: <20250227012021.1778144-8-binbin.wu@linux.intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent 5cf7239 commit 7ddf314

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

arch/x86/kvm/x86.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@
9090
#include "trace.h"
9191

9292
#define MAX_IO_MSRS 256
93-
#define KVM_MAX_MCE_BANKS 32
9493

9594
/*
9695
* Note, kvm_caps fields should *never* have default values, all fields must be

arch/x86/kvm/x86.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
#include "kvm_emulate.h"
1111
#include "cpuid.h"
1212

13+
#define KVM_MAX_MCE_BANKS 32
14+
1315
struct kvm_caps {
1416
/* control of guest tsc rate supported? */
1517
bool has_tsc_control;

0 commit comments

Comments
 (0)