[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220601213231.954411-1-chrissicool@gmail.com>
Date: Wed, 1 Jun 2022 21:32:31 +0000
From: Christian Ludwig <chrissicool@...il.com>
To: linux-kernel@...r.kernel.org, Thomas Gleixner <tglx@...utronix.de>,
Peter Zijlstra <peterz@...radead.org>,
Andy Lutomirski <luto@...nel.org>
Subject: [PATCH] entry: KVM: Change override for arch_xfer_to_guest_mode_handle_work()
Change the way arch_xfer_to_guest_mode_handle_work() can be overridden
by architecture code. Use the function name as the preprocessor define.
This is better greppable. And it resembles the way many other overrides
are constructed in the tree.
Note that none of this matters at the moment. There is no architecture
overriding this function. This change is purely cosmetic.
Signed-off-by: Christian Ludwig <chrissicool@...il.com>
---
include/linux/entry-kvm.h | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/include/linux/entry-kvm.h b/include/linux/entry-kvm.h
index 6813171afccb..2d2ba13b3e75 100644
--- a/include/linux/entry-kvm.h
+++ b/include/linux/entry-kvm.h
@@ -31,15 +31,13 @@ struct kvm_vcpu;
* Invoked from xfer_to_guest_mode_handle_work(). Defaults to NOOP. Can be
* replaced by architecture specific code.
*/
-static inline int arch_xfer_to_guest_mode_handle_work(struct kvm_vcpu *vcpu,
- unsigned long ti_work);
-
-#ifndef arch_xfer_to_guest_mode_work
+#ifndef arch_xfer_to_guest_mode_handle_work
static inline int arch_xfer_to_guest_mode_handle_work(struct kvm_vcpu *vcpu,
unsigned long ti_work)
{
return 0;
}
+#define arch_xfer_to_guest_mode_handle_work arch_xfer_to_guest_mode_handle_work
#endif
/**
--
2.35.1
Powered by blists - more mailing lists