diff options
| -rw-r--r-- | arch/mips/kvm/mips.c | 1 | ||||
| -rw-r--r-- | arch/s390/kvm/intercept.c | 9 | ||||
| -rw-r--r-- | arch/x86/kvm/ioapic.c | 2 | ||||
| -rw-r--r-- | arch/x86/kvm/x86.c | 4 |
4 files changed, 11 insertions, 5 deletions
diff --git a/arch/mips/kvm/mips.c b/arch/mips/kvm/mips.c index ce961495b5e1..622037d851a3 100644 --- a/arch/mips/kvm/mips.c +++ b/arch/mips/kvm/mips.c | |||
| @@ -14,6 +14,7 @@ | |||
| 14 | #include <linux/err.h> | 14 | #include <linux/err.h> |
| 15 | #include <linux/kdebug.h> | 15 | #include <linux/kdebug.h> |
| 16 | #include <linux/module.h> | 16 | #include <linux/module.h> |
| 17 | #include <linux/uaccess.h> | ||
| 17 | #include <linux/vmalloc.h> | 18 | #include <linux/vmalloc.h> |
| 18 | #include <linux/fs.h> | 19 | #include <linux/fs.h> |
| 19 | #include <linux/bootmem.h> | 20 | #include <linux/bootmem.h> |
diff --git a/arch/s390/kvm/intercept.c b/arch/s390/kvm/intercept.c index 1cab8a177d0e..7a27eebab28a 100644 --- a/arch/s390/kvm/intercept.c +++ b/arch/s390/kvm/intercept.c | |||
| @@ -119,8 +119,13 @@ static int handle_validity(struct kvm_vcpu *vcpu) | |||
| 119 | 119 | ||
| 120 | vcpu->stat.exit_validity++; | 120 | vcpu->stat.exit_validity++; |
| 121 | trace_kvm_s390_intercept_validity(vcpu, viwhy); | 121 | trace_kvm_s390_intercept_validity(vcpu, viwhy); |
| 122 | WARN_ONCE(true, "kvm: unhandled validity intercept 0x%x\n", viwhy); | 122 | KVM_EVENT(3, "validity intercept 0x%x for pid %u (kvm 0x%pK)", viwhy, |
| 123 | return -EOPNOTSUPP; | 123 | current->pid, vcpu->kvm); |
| 124 | |||
| 125 | /* do not warn on invalid runtime instrumentation mode */ | ||
| 126 | WARN_ONCE(viwhy != 0x44, "kvm: unhandled validity intercept 0x%x\n", | ||
| 127 | viwhy); | ||
| 128 | return -EINVAL; | ||
| 124 | } | 129 | } |
| 125 | 130 | ||
| 126 | static int handle_instruction(struct kvm_vcpu *vcpu) | 131 | static int handle_instruction(struct kvm_vcpu *vcpu) |
diff --git a/arch/x86/kvm/ioapic.c b/arch/x86/kvm/ioapic.c index c7220ba94aa7..1a22de70f7f7 100644 --- a/arch/x86/kvm/ioapic.c +++ b/arch/x86/kvm/ioapic.c | |||
| @@ -594,7 +594,7 @@ static void kvm_ioapic_reset(struct kvm_ioapic *ioapic) | |||
| 594 | ioapic->irr = 0; | 594 | ioapic->irr = 0; |
| 595 | ioapic->irr_delivered = 0; | 595 | ioapic->irr_delivered = 0; |
| 596 | ioapic->id = 0; | 596 | ioapic->id = 0; |
| 597 | memset(ioapic->irq_eoi, 0x00, IOAPIC_NUM_PINS); | 597 | memset(ioapic->irq_eoi, 0x00, sizeof(ioapic->irq_eoi)); |
| 598 | rtc_irq_eoi_tracking_reset(ioapic); | 598 | rtc_irq_eoi_tracking_reset(ioapic); |
| 599 | } | 599 | } |
| 600 | 600 | ||
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 6c633de84dd7..e375235d81c9 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
| @@ -5733,13 +5733,13 @@ static int kvmclock_cpu_online(unsigned int cpu) | |||
| 5733 | 5733 | ||
| 5734 | static void kvm_timer_init(void) | 5734 | static void kvm_timer_init(void) |
| 5735 | { | 5735 | { |
| 5736 | int cpu; | ||
| 5737 | |||
| 5738 | max_tsc_khz = tsc_khz; | 5736 | max_tsc_khz = tsc_khz; |
| 5739 | 5737 | ||
| 5740 | if (!boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) { | 5738 | if (!boot_cpu_has(X86_FEATURE_CONSTANT_TSC)) { |
| 5741 | #ifdef CONFIG_CPU_FREQ | 5739 | #ifdef CONFIG_CPU_FREQ |
| 5742 | struct cpufreq_policy policy; | 5740 | struct cpufreq_policy policy; |
| 5741 | int cpu; | ||
| 5742 | |||
| 5743 | memset(&policy, 0, sizeof(policy)); | 5743 | memset(&policy, 0, sizeof(policy)); |
| 5744 | cpu = get_cpu(); | 5744 | cpu = get_cpu(); |
| 5745 | cpufreq_get_policy(&policy, cpu); | 5745 | cpufreq_get_policy(&policy, cpu); |
