Skip to contentSkip to conversation

KVM/X86: Make kvm_vcpu_reload_apic_access_page() static

PATCH Applied Quanfa Fu 3 participants 3 messages Dec 19, 2021 – Jan 24, 2022

Subsystems (2)
lore
Share & tools
lore

Quanfa Fu

author
#0 lore raw

PATCH 1/1 KVM/X86: Make kvm_vcpu_reload_apic_access_page() static

Make kvm_vcpu_reload_apic_access_page() static
as it is no longer invoked directly by vmx
and it is also no longer exported.

No functional change intended.

---
 arch/x86/include/asm/kvm_host.h | 1 -
 arch/x86/kvm/x86.c              | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)
arch/x86/include/asm/kvm_host.h +0 -1
index 2164b9f4c7b0..f1c4ba208ed6 100644
@@ -1855,7 +1855,6 @@ int kvm_cpu_has_extint(struct kvm_vcpu *v);
 int kvm_arch_interrupt_allowed(struct kvm_vcpu *vcpu);
 int kvm_cpu_get_interrupt(struct kvm_vcpu *v);
 void kvm_vcpu_reset(struct kvm_vcpu *vcpu, bool init_event);
-void kvm_vcpu_reload_apic_access_page(struct kvm_vcpu *vcpu);
 
 int kvm_pv_send_ipi(struct kvm *kvm, unsigned long ipi_bitmap_low,
 		    unsigned long ipi_bitmap_high, u32 min,
arch/x86/kvm/x86.c +1 -1
index 0cf1082455df..6569a62ea38b 100644
@@ -9621,7 +9621,7 @@ void kvm_arch_mmu_notifier_invalidate_range(struct kvm *kvm,
 		kvm_make_all_cpus_request(kvm, KVM_REQ_APIC_PAGE_RELOAD);
 }
 
-void kvm_vcpu_reload_apic_access_page(struct kvm_vcpu *vcpu)
+static void kvm_vcpu_reload_apic_access_page(struct kvm_vcpu *vcpu)
 {
 	if (!lapic_in_kernel(vcpu))
 		return;
Signature · 1 line
2.25.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Quanfa Fu

Make kvm_vcpu_reload_apic_access_page() static
as it is no longer invoked directly by vmx
and it is also no longer exported.

Nit, in the future, please wrap closer to 75 chars, there's no need for this to be spread out over three lines, e.g.

Make kvm_vcpu_reload_apic_access_page() static as it is no longer invoked directly by vmx and it is also no longer exported.

Quoted 4 lines

No functional change intended.

---

maintainer Applied
#2 lore raw
In reply to Quanfa Fu
Quoted 29 lines · Quanfa Fu

Make kvm_vcpu_reload_apic_access_page() static
as it is no longer invoked directly by vmx
and it is also no longer exported.

No functional change intended.

---
  arch/x86/include/asm/kvm_host.h | 1 -
  arch/x86/kvm/x86.c              | 2 +-
  2 files changed, 1 insertion(+), 2 deletions(-)
arch/x86/include/asm/kvm_host.h +0 -1
index 2164b9f4c7b0..f1c4ba208ed6 100644
@@ -1855,7 +1855,6 @@ int kvm_cpu_has_extint(struct kvm_vcpu *v);
  int kvm_arch_interrupt_allowed(struct kvm_vcpu *vcpu);
  int kvm_cpu_get_interrupt(struct kvm_vcpu *v);
  void kvm_vcpu_reset(struct kvm_vcpu *vcpu, bool init_event);
-void kvm_vcpu_reload_apic_access_page(struct kvm_vcpu *vcpu);
 
  int kvm_pv_send_ipi(struct kvm *kvm, unsigned long ipi_bitmap_low,
  		    unsigned long ipi_bitmap_high, u32 min,
arch/x86/kvm/x86.c +0 -0
index 0cf1082455df..6569a62ea38b 100644

arch/x86/kvm/x86.c void kvm_arch_mmu_notifier_invalidate_range(struct kvm *kvm, · line 9627

Quoted 8 lines
arch/x86/kvm/x86.c +1 -1
@@ -9621,7 +9621,7 @@ void kvm_arch_mmu_notifier_invalidate_range(struct kvm *kvm,
  		kvm_make_all_cpus_request(kvm, KVM_REQ_APIC_PAGE_RELOAD);
  }
 
-void kvm_vcpu_reload_apic_access_page(struct kvm_vcpu *vcpu)
+static void kvm_vcpu_reload_apic_access_page(struct kvm_vcpu *vcpu)
  {
  	if (!lapic_in_kernel(vcpu))
  		return;

Queued, thanks.

paolo