diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2015-06-03 08:51:02 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-06-03 08:51:02 -0400 |
commit | f71f81d70a264ac9924deb9a95a7e0a4578e7648 (patch) | |
tree | 40f4a46a03245644835d240a2b9fe9a33aab351a /arch/s390/kvm | |
parent | b7e60c5aedd2b63f16ef06fde4f81ca032211bc5 (diff) | |
parent | ea2cdd27dce66dc498c623adacd807ea3a350443 (diff) |
Merge tag 'kvm-s390-next-20150602' of git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux into kvm-next
KVM: s390: Fix and cleanup for 4.2 (kvm/next)
One small fix for a commit targetted for 4.2 and one cleanup
regarding our printks.
Diffstat (limited to 'arch/s390/kvm')
-rw-r--r-- | arch/s390/kvm/kvm-s390.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index 8ad4b9a5667f..71530a43a728 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c | |||
@@ -36,6 +36,10 @@ | |||
36 | #include "kvm-s390.h" | 36 | #include "kvm-s390.h" |
37 | #include "gaccess.h" | 37 | #include "gaccess.h" |
38 | 38 | ||
39 | #define KMSG_COMPONENT "kvm-s390" | ||
40 | #undef pr_fmt | ||
41 | #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt | ||
42 | |||
39 | #define CREATE_TRACE_POINTS | 43 | #define CREATE_TRACE_POINTS |
40 | #include "trace.h" | 44 | #include "trace.h" |
41 | #include "trace-s390.h" | 45 | #include "trace-s390.h" |
@@ -1419,6 +1423,7 @@ int kvm_arch_vcpu_runnable(struct kvm_vcpu *vcpu) | |||
1419 | void kvm_s390_vcpu_block(struct kvm_vcpu *vcpu) | 1423 | void kvm_s390_vcpu_block(struct kvm_vcpu *vcpu) |
1420 | { | 1424 | { |
1421 | atomic_set_mask(PROG_BLOCK_SIE, &vcpu->arch.sie_block->prog20); | 1425 | atomic_set_mask(PROG_BLOCK_SIE, &vcpu->arch.sie_block->prog20); |
1426 | exit_sie(vcpu); | ||
1422 | } | 1427 | } |
1423 | 1428 | ||
1424 | void kvm_s390_vcpu_unblock(struct kvm_vcpu *vcpu) | 1429 | void kvm_s390_vcpu_unblock(struct kvm_vcpu *vcpu) |
@@ -1429,6 +1434,7 @@ void kvm_s390_vcpu_unblock(struct kvm_vcpu *vcpu) | |||
1429 | static void kvm_s390_vcpu_request(struct kvm_vcpu *vcpu) | 1434 | static void kvm_s390_vcpu_request(struct kvm_vcpu *vcpu) |
1430 | { | 1435 | { |
1431 | atomic_set_mask(PROG_REQUEST, &vcpu->arch.sie_block->prog20); | 1436 | atomic_set_mask(PROG_REQUEST, &vcpu->arch.sie_block->prog20); |
1437 | exit_sie(vcpu); | ||
1432 | } | 1438 | } |
1433 | 1439 | ||
1434 | static void kvm_s390_vcpu_request_handled(struct kvm_vcpu *vcpu) | 1440 | static void kvm_s390_vcpu_request_handled(struct kvm_vcpu *vcpu) |
@@ -1452,7 +1458,6 @@ void kvm_s390_sync_request(int req, struct kvm_vcpu *vcpu) | |||
1452 | { | 1458 | { |
1453 | kvm_make_request(req, vcpu); | 1459 | kvm_make_request(req, vcpu); |
1454 | kvm_s390_vcpu_request(vcpu); | 1460 | kvm_s390_vcpu_request(vcpu); |
1455 | exit_sie(vcpu); | ||
1456 | } | 1461 | } |
1457 | 1462 | ||
1458 | static void kvm_gmap_notifier(struct gmap *gmap, unsigned long address) | 1463 | static void kvm_gmap_notifier(struct gmap *gmap, unsigned long address) |
@@ -2089,7 +2094,7 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) | |||
2089 | if (!kvm_s390_user_cpu_state_ctrl(vcpu->kvm)) { | 2094 | if (!kvm_s390_user_cpu_state_ctrl(vcpu->kvm)) { |
2090 | kvm_s390_vcpu_start(vcpu); | 2095 | kvm_s390_vcpu_start(vcpu); |
2091 | } else if (is_vcpu_stopped(vcpu)) { | 2096 | } else if (is_vcpu_stopped(vcpu)) { |
2092 | pr_err_ratelimited("kvm-s390: can't run stopped vcpu %d\n", | 2097 | pr_err_ratelimited("can't run stopped vcpu %d\n", |
2093 | vcpu->vcpu_id); | 2098 | vcpu->vcpu_id); |
2094 | return -EINVAL; | 2099 | return -EINVAL; |
2095 | } | 2100 | } |
@@ -2621,7 +2626,7 @@ void kvm_arch_commit_memory_region(struct kvm *kvm, | |||
2621 | rc = gmap_map_segment(kvm->arch.gmap, mem->userspace_addr, | 2626 | rc = gmap_map_segment(kvm->arch.gmap, mem->userspace_addr, |
2622 | mem->guest_phys_addr, mem->memory_size); | 2627 | mem->guest_phys_addr, mem->memory_size); |
2623 | if (rc) | 2628 | if (rc) |
2624 | printk(KERN_WARNING "kvm-s390: failed to commit memory region\n"); | 2629 | pr_warn("failed to commit memory region\n"); |
2625 | return; | 2630 | return; |
2626 | } | 2631 | } |
2627 | 2632 | ||