summary refs log tree commit diff stats
path: root/results/classifier/accel-gemma3:12b/kvm/1312668
blob: 858cb9efee07fcfd7682aa43e63a3c31842ea2b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
x86 cpu nx feature: guest reboots  after migrate exec

Using instruction on 
http://www.linux-kvm.org/page/Migration
I save VM state to external file and try load it, but VM starts, shows saved screen and reboots immediatly.

Cmdline for vm state saving:

$ sudo ./i386-softmmu/qemu-system-i386 -machine accel=kvm,kernel_irqchip=on -enable-kvm  -m 512 -hda image.raw -vga std -net none  -M pc -monitor stdio -cpu SandyBridge 
(or  -cpu "n270" , or "kvm32,+sse2,+pae,+nx")

Monitor cmd:
(qemu) stop
(qemu) migrate_set_speed 4095m
(qemu) migrate "exec:gzip -c > STATEFILE.gz"  
(qemu) q

Cmdline for vm state loading:

$ sudo ./i386-softmmu/qemu-system-i386 -machine accel=kvm,kernel_irqchip=on -enable-kvm  -m 512 -hda image.raw -vga std -net none  -M pc -monitor stdio -cpu SandyBridge -incoming "exec: gzip -c -d STATEFILE.gz"
(or  -cpu "n270" , or "kvm32,+sse2,+pae,+nx")

If I do the same without NX cpu feature (-cpu option "n270,-nx" / "SandyBridge,-nx" / "kvm32,+pae,+sse2") or on qemu-system-x86_64, VM save/load works correctly. 

Log kvm-all.c, DEBUG_KVM=y:

QEMU 2.0.0 monitor - type 'help' for more information
(qemu) kvm_init_vcpu
...handle_io.../...handle_mmio...
kvm_cpu_exec()
shutdown
kvm_cpu_exec()
interrupt exit requested
io window exit
kvm_cpu_exec()

Host:

 $ lsb_release -rd
 Description:	Ubuntu 12.04.4 LTS
 Release:	12.04

 $ uname -a
 Linux <username> 3.8.0-38-generic #56~precise1 SMP Tue Apr 22 12:46:44 MSK 2014 x86_64 x86_64 x86_64 GNU/Linux

Guest:
 1. Ubuntu 12.04 32bit 
 2. WIndows 8 32bit

Qemu: v2.0.0
commit a9e8aeb3755bccb7b51174adcf4a3fc427e0d147
Author: Peter Maydell <email address hidden>
Date:   Thu Apr 17 13:41:45 2014 +0100