KVM: s390: Small enhancements for 3.18 (next)

Provide TOD CLOCK steering to the guest and add cpu wakeup counter.
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.14 (GNU/Linux)
 
 iQIcBAABAgAGBQJULAjKAAoJEBF7vIC1phx8hnUP/iDQkXo5+gZOvCLDi/z8oUZW
 7zmwIFmcqGn++0g0NitClNAox1Z0eT7bcmqJywiZywOJOXJH+VusO0fkJS6Pg4mQ
 l0WCc/kLQjKpCe8DffMjrO0rrA0Os4TFRCAXeOoZ6BKcatCaxF0fr25EIsTtXOjC
 wnIZjt1eNB4HER/s4IHBXthkYa9ijyny+EvaKwd/vZwiMmBZUdko5H2Hm8+K2juE
 Qmq4ouCQ+rX+TIv2r71gXBzFsOrklK5Blr0BKl1x5gc/f0Ij+Afq/ZQlZ/Iz4/Tx
 J63kCgd8QpVyWP19AekJnf9xqwS0w0G/hmlAJyuxvVtxiqERvYNXrvlh698PplMs
 dlidD+4Y3BaC6T+JTFMoqPNZaayegQD2Kbq7acf3rZJJeLIXpn/1VcRZkrNJD3DK
 o2LS0cPcmC0tTVmSkAnyZjzVLkNnTTKVVlLorB7MvyZ8FafQPZjrifPQ2qtQvC2O
 VG0oN1b7MuIDuMC1JgUIHEsJfIxtHnVZ3yLvENKRdHcb/ac2mUK22UPympwhM+Wk
 FLnqLXd7bQMKRNneewtfZvTl0TxmtBp1c4AJAQyukha8gCTUmpv0QsWRkRK1XtQ6
 1BgBuiMakDksxUCTj5UJEx0aV6FixGPZAtFNoWXR+ufS1VtBzwndheR8BwWMOd/+
 BT2f2ClIb+x7GpAhBQjL
 =AaqY
 -----END PGP SIGNATURE-----

Merge tag 'kvm-s390-next-20141001' of git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux into kvm-next

KVM: s390: Small enhancements for 3.18 (next)

Provide TOD CLOCK steering to the guest and add cpu wakeup counter.
This commit is contained in:
Paolo Bonzini 2014-10-02 13:44:45 +02:00
commit a74b7d5514
3 changed files with 4 additions and 1 deletions
arch/s390

View file

@ -192,6 +192,7 @@ struct kvm_vcpu_stat {
u32 exit_stop_request;
u32 exit_validity;
u32 exit_instruction;
u32 halt_wakeup;
u32 instruction_lctl;
u32 instruction_lctlg;
u32 instruction_stctl;

View file

@ -626,6 +626,7 @@ void kvm_s390_vcpu_wakeup(struct kvm_vcpu *vcpu)
*/
vcpu->preempted = true;
wake_up_interruptible(&vcpu->wq);
vcpu->stat.halt_wakeup++;
}
}

View file

@ -50,6 +50,7 @@ struct kvm_stats_debugfs_item debugfs_entries[] = {
{ "exit_instruction", VCPU_STAT(exit_instruction) },
{ "exit_program_interruption", VCPU_STAT(exit_program_interruption) },
{ "exit_instr_and_program_int", VCPU_STAT(exit_instr_and_program) },
{ "halt_wakeup", VCPU_STAT(halt_wakeup) },
{ "instruction_lctlg", VCPU_STAT(instruction_lctlg) },
{ "instruction_lctl", VCPU_STAT(instruction_lctl) },
{ "instruction_stctl", VCPU_STAT(instruction_stctl) },
@ -1786,7 +1787,7 @@ static int __init kvm_s390_init(void)
return -ENOMEM;
}
memcpy(vfacilities, S390_lowcore.stfle_fac_list, 16);
vfacilities[0] &= 0xff82fff3f4fc2000UL;
vfacilities[0] &= 0xff82fffbf47c2000UL;
vfacilities[1] &= 0x005c000000000000UL;
return 0;
}