diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2010-10-14 13:49:59 -0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-28 21:51:38 -0700 |
commit | 8706a900f0c047b49e34918cdf2b23dc82c234d5 (patch) | |
tree | 155113353ddb006095d37da59e77fbb373778514 /block/bsg.c | |
parent | 85aa4285872f67bb21ecf7de0e467c57b4c6a976 (diff) |
KVM: Fix reboot on Intel hosts
commit ca242ac9960dc61530e25a2c190e4e13fd5f1ecb upstream.
When we reboot, we disable vmx extensions or otherwise INIT gets blocked.
If a task on another cpu hits a vmx instruction, it will fault if vmx is
disabled. We trap that to avoid a nasty oops and spin until the reboot
completes.
Problem is, we sleep with interrupts disabled. This blocks smp_send_stop()
from running, and the reboot process halts.
Fix by enabling interrupts before spinning.
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'block/bsg.c')
0 files changed, 0 insertions, 0 deletions