kvm-s390.h (bbb20089a3275a19e475dbc21320c3742e3ca423) | kvm-s390.h (9ace903d171db7dc2fed96e44ac62b6f4c3ccb3d) |
---|---|
1/* 2 * kvm_s390.h - definition for kvm on s390 3 * 4 * Copyright IBM Corp. 2008 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License (version 2 only) 8 * as published by the Free Software Foundation. --- 6 unchanged lines hidden (view full) --- 15#define ARCH_S390_KVM_S390_H 16 17#include <linux/hrtimer.h> 18#include <linux/kvm.h> 19#include <linux/kvm_host.h> 20 21typedef int (*intercept_handler_t)(struct kvm_vcpu *vcpu); 22 | 1/* 2 * kvm_s390.h - definition for kvm on s390 3 * 4 * Copyright IBM Corp. 2008 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License (version 2 only) 8 * as published by the Free Software Foundation. --- 6 unchanged lines hidden (view full) --- 15#define ARCH_S390_KVM_S390_H 16 17#include <linux/hrtimer.h> 18#include <linux/kvm.h> 19#include <linux/kvm_host.h> 20 21typedef int (*intercept_handler_t)(struct kvm_vcpu *vcpu); 22 |
23/* negativ values are error codes, positive values for internal conditions */ 24#define SIE_INTERCEPT_RERUNVCPU (1<<0) |
|
23int kvm_handle_sie_intercept(struct kvm_vcpu *vcpu); 24 25#define VM_EVENT(d_kvm, d_loglevel, d_string, d_args...)\ 26do { \ 27 debug_sprintf_event(d_kvm->arch.dbf, d_loglevel, d_string "\n", \ 28 d_args); \ 29} while (0) 30 --- 14 unchanged lines hidden (view full) --- 45enum hrtimer_restart kvm_s390_idle_wakeup(struct hrtimer *timer); 46void kvm_s390_tasklet(unsigned long parm); 47void kvm_s390_deliver_pending_interrupts(struct kvm_vcpu *vcpu); 48int kvm_s390_inject_vm(struct kvm *kvm, 49 struct kvm_s390_interrupt *s390int); 50int kvm_s390_inject_vcpu(struct kvm_vcpu *vcpu, 51 struct kvm_s390_interrupt *s390int); 52int kvm_s390_inject_program_int(struct kvm_vcpu *vcpu, u16 code); | 25int kvm_handle_sie_intercept(struct kvm_vcpu *vcpu); 26 27#define VM_EVENT(d_kvm, d_loglevel, d_string, d_args...)\ 28do { \ 29 debug_sprintf_event(d_kvm->arch.dbf, d_loglevel, d_string "\n", \ 30 d_args); \ 31} while (0) 32 --- 14 unchanged lines hidden (view full) --- 47enum hrtimer_restart kvm_s390_idle_wakeup(struct hrtimer *timer); 48void kvm_s390_tasklet(unsigned long parm); 49void kvm_s390_deliver_pending_interrupts(struct kvm_vcpu *vcpu); 50int kvm_s390_inject_vm(struct kvm *kvm, 51 struct kvm_s390_interrupt *s390int); 52int kvm_s390_inject_vcpu(struct kvm_vcpu *vcpu, 53 struct kvm_s390_interrupt *s390int); 54int kvm_s390_inject_program_int(struct kvm_vcpu *vcpu, u16 code); |
55int kvm_s390_inject_sigp_stop(struct kvm_vcpu *vcpu, int action); |
|
53 54/* implemented in priv.c */ 55int kvm_s390_handle_b2(struct kvm_vcpu *vcpu); 56 57/* implemented in sigp.c */ 58int kvm_s390_handle_sigp(struct kvm_vcpu *vcpu); 59 60/* implemented in kvm-s390.c */ 61int __kvm_s390_vcpu_store_status(struct kvm_vcpu *vcpu, 62 unsigned long addr); 63/* implemented in diag.c */ 64int kvm_s390_handle_diag(struct kvm_vcpu *vcpu); 65 66#endif | 56 57/* implemented in priv.c */ 58int kvm_s390_handle_b2(struct kvm_vcpu *vcpu); 59 60/* implemented in sigp.c */ 61int kvm_s390_handle_sigp(struct kvm_vcpu *vcpu); 62 63/* implemented in kvm-s390.c */ 64int __kvm_s390_vcpu_store_status(struct kvm_vcpu *vcpu, 65 unsigned long addr); 66/* implemented in diag.c */ 67int kvm_s390_handle_diag(struct kvm_vcpu *vcpu); 68 69#endif |