]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm: reimplement kvm__setup_sregs
authorAsias He <asias.hejun@gmail.com>
Fri, 28 May 2010 07:48:16 +0000 (15:48 +0800)
committerCyrill Gorcunov <gorcunov@gmail.com>
Fri, 28 May 2010 17:44:08 +0000 (21:44 +0400)
commit6ad05844bad0f99c546c6bcb230b77a7cec22a1d
tree4f8400d5dd0f9efc072047698f9b45a1e891b758
parenta8f3e7a73198aa38ef7a90a7f96b98c2ef0567fb
kvm: reimplement kvm__setup_sregs

It's better to get sregs which was initialized by kernel and change what
we need precisely. Actually vmx_vcpu_reset does the cpu initialization
before us.

This solves the problem of failing to run on x86-32 host kernel.

Signed-off-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
tools/kvm/kvm.c