OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b2f72d
)
x86/kvm: Always inline vmload() / vmsave()
author
Peter Zijlstra
<peterz@infradead.org>
Thu, 24 Jun 2021 09:41:04 +0000
(11:41 +0200)
committer
Peter Zijlstra
<peterz@infradead.org>
Wed, 15 Sep 2021 13:51:45 +0000
(15:51 +0200)
vmlinux.o: warning: objtool: svm_vcpu_enter_exit()+0xea: call to vmload() leaves .noinstr.text section
vmlinux.o: warning: objtool: svm_vcpu_enter_exit()+0x133: call to vmsave() leaves .noinstr.text section
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link:
https://lore.kernel.org/r/20210624095147.942250748@infradead.org
arch/x86/kvm/svm/svm_ops.h
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/svm/svm_ops.h
b/arch/x86/kvm/svm/svm_ops.h
index
22e2b01
..
9430d64
100644
(file)
--- a/
arch/x86/kvm/svm/svm_ops.h
+++ b/
arch/x86/kvm/svm/svm_ops.h
@@
-56,12
+56,12
@@
static inline void invlpga(unsigned long addr, u32 asid)
* VMSAVE, VMLOAD, etc... is still controlled by the effective address size,
* hence 'unsigned long' instead of 'hpa_t'.
*/
-static inline void vmsave(unsigned long pa)
+static
__always_
inline void vmsave(unsigned long pa)
{
svm_asm1(vmsave, "a" (pa), "memory");
}
-static inline void vmload(unsigned long pa)
+static
__always_
inline void vmload(unsigned long pa)
{
svm_asm1(vmload, "a" (pa), "memory");
}