Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca0565f5 authored by Xiao Guangrong's avatar Xiao Guangrong Committed by Marcelo Tosatti
Browse files

KVM: make bad_pfn static to kvm_main.c



bad_pfn is not used out of kvm_main.c, so mark it static, also move it near
hwpoison_pfn and fault_pfn

Signed-off-by: default avatarXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent 903816fa
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -383,7 +383,6 @@ id_to_memslot(struct kvm_memslots *slots, int id)
static inline int is_error_hpa(hpa_t hpa) { return hpa >> HPA_MSB; }

extern struct page *bad_page;
extern pfn_t bad_pfn;

int is_error_page(struct page *page);
int is_error_pfn(pfn_t pfn);
+3 −3
Original line number Diff line number Diff line
@@ -100,6 +100,9 @@ EXPORT_SYMBOL_GPL(kvm_rebooting);

static bool largepages_enabled = true;

struct page *bad_page;
static pfn_t bad_pfn;

static struct page *hwpoison_page;
static pfn_t hwpoison_pfn;

@@ -2691,9 +2694,6 @@ static struct syscore_ops kvm_syscore_ops = {
	.resume = kvm_resume,
};

struct page *bad_page;
pfn_t bad_pfn;

static inline
struct kvm_vcpu *preempt_notifier_to_vcpu(struct preempt_notifier *pn)
{