public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Starting a VM using /dev/kvm
@ 2013-11-19 23:56 Jim MacArthur
  2013-11-20 17:28 ` Paolo Bonzini
  0 siblings, 1 reply; 6+ messages in thread
From: Jim MacArthur @ 2013-11-19 23:56 UTC (permalink / raw)
  To: kvm

I'm new to KVM and as a learning exercise I'd like to start a VM and
run a few instructions by using ioctls on /dev/kvm. This might be a
terrible idea, please say so if it is.

I haven't been able to find much information on it, but by reading the
API document and stracing qemu I've put together a small program which
creates a VM, VCPU, and sets up some memory. All of these ioctls
return successfully, but trying to run always returns with exit code
17 and suberror 1 which so far as I can tell seems to be a problem
with page tables. I'm on an x86_64 host.

The question is, how does a new vcpu start up? Will it start in full
64-bit mode or 16-bit real mode? And will I need a full set of
translation tables to run a single instruction or can I just point it
at some memory and expect it to run?

Thanks for any help you can offer.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-11-22  6:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-19 23:56 Starting a VM using /dev/kvm Jim MacArthur
2013-11-20 17:28 ` Paolo Bonzini
2013-11-21  0:39   ` Jim MacArthur
2013-11-21  7:27     ` Gleb Natapov
2013-11-21 23:57       ` Jim MacArthur
2013-11-22  6:56         ` Gleb Natapov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox