https://github.com/torvalds/linux
Revision 9e6dabeffd1d0ec2aa19aa076c4886067238d442 authored by Cornelia Huck on 17 November 2011, 10:00:41 UTC, committed by Avi Kivity on 17 November 2011, 14:25:43 UTC
CPUSTAT_RUNNING was implemented signifying that a vcpu is not stopped.
This is not, however, what the architecture says: RUNNING should be
set when the host is acting on the behalf of the guest operating
system.

CPUSTAT_RUNNING has been changed to be set in kvm_arch_vcpu_load()
and to be unset in kvm_arch_vcpu_put().

For signifying stopped state of a vcpu, a host-controlled bit has
been used and is set/unset basically on the reverse as the old
CPUSTAT_RUNNING bit (including pushing it down into stop handling
proper in handle_stop()).

Cc: stable@kernel.org
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
1 parent 3439a8d
History
Tip revision: 9e6dabeffd1d0ec2aa19aa076c4886067238d442 authored by Cornelia Huck on 17 November 2011, 10:00:41 UTC
KVM: s390: Fix RUNNING flag misinterpretation
Tip revision: 9e6dabe
File Mode Size
.gitignore -rw-r--r-- 151 bytes
Kconfig -rw-r--r-- 5.3 KB
Makefile -rw-r--r-- 2.3 KB
gen_init_cpio.c -rw-r--r-- 13.1 KB
initramfs_data.S -rw-r--r-- 1.3 KB

back to top