mirror of
https://github.com/dynup/kpatch
synced 2024-12-12 00:14:35 +00:00
4c7fb9119a
WARN-only function changes are very common, and a serious PITA for patch authors. Detect and ignore them. Fixes #454.
14 lines
449 B
Diff
14 lines
449 B
Diff
Index: src/arch/x86/kvm/x86.c
|
|
===================================================================
|
|
--- src.orig/arch/x86/kvm/x86.c
|
|
+++ src/arch/x86/kvm/x86.c
|
|
@@ -211,6 +211,8 @@ static void shared_msr_update(unsigned s
|
|
|
|
void kvm_define_shared_msr(unsigned slot, u32 msr)
|
|
{
|
|
+ if (!jiffies)
|
|
+ printk("kpatch kvm define shared msr\n");
|
|
if (slot >= shared_msrs_global.nr)
|
|
shared_msrs_global.nr = slot + 1;
|
|
shared_msrs_global.msrs[slot] = msr;
|