]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm: Hardcode a "reset vector" at f000:fff0
authorPekka Enberg <penberg@cs.helsinki.fi>
Sat, 27 Mar 2010 08:53:15 +0000 (10:53 +0200)
committerPekka Enberg <penberg@cs.helsinki.fi>
Sat, 27 Mar 2010 08:53:15 +0000 (10:53 +0200)
commit3d359d405befcadca924545446004c441ebf05c2
tree1f01ab306c18cde3999a60649d03c8d62cd5089e
parent66362dd573ef82d2c54a82371c89ed75633f52e8
kvm: Hardcode a "reset vector" at f000:fff0

It seems that if we attempt to run code at any other location than f000:fff0,
we get an KVM_EXIT_UNKNOWN error. To work around that, hardcode a "reset
vector" at f000:fff0 that jumps to 0000:0x7c000 and load the kernel at the
latter location.

Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
tools/kvm/kvm.c
tools/kvm/util.h