* Pekka Enberg <[email protected]> wrote: > Add support for booting guests to host block devices in read-only mode. > > Cc: Asias He <[email protected]> > Cc: Cyrill Gorcunov <[email protected]> > Cc: Prasad Joshi <[email protected]> > Cc: Sasha Levin <[email protected]> > Cc: Ingo Molnar <[email protected]> > Signed-off-by: Pekka Enberg <[email protected]> > --- > tools/kvm/disk-image.c | 39 +++++++++++++++++++++++++++++++-------- > 1 files changed, 31 insertions(+), 8 deletions(-)
Nice patch - booting into the host's userspace works out of box now. The following disk-image-less command: ./kvm run ../../arch/x86/boot/bzImage --readonly --image=/dev/sda --params="root=/dev/vda1" has booted all the way into the host's Fedora Rawhide userspace: =================================== Welcome to Fedora release 16 (Rawhide)! [...] Fedora release 16 (Rawhide) Kernel 2.6.39-rc3-tip+ on an x86_64 (ttyS0) aldebaran login: =================================== I ran this as unprivileged user (who had read access to the partitions in question). This is a very useful feature for testing kernels - i can test any random Linux box's userspace via KVM, without having to copy an image there! :-) Tested-by: Ingo Molnar <[email protected]> Thanks, Ingo -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
