[Lguest] could 3rd time be charm?

ron minnich rminnich at gmail.com
Wed Sep 5 14:19:30 EST 2007


I sure hope so.

BTW these patches are the basis of a distribution we are doing called
THNX (It used to be called THX until we stopped using Xen and moved to
lguest, after a brief stopover at KVM).

THNX gives users a small (well, is 70 MB small?) linux distro which
boots into a single user bash and allows users to start up a plan 9
guest. So it's a way to distribute Plan 9 and use Linux as the driver.
The Linux side is very primitive but, as a huge bonus, has no init
scripts. (well, huge bonus to cavemen like me).

We have, like, 2 users, but hey, we're young.:-)

Anyway ...

0001 implements the reserve vector in io_apic.c. The only operations
supported are
1) test for a reserved vector, and
2) set a reserved vector at boot time via reserve_vector= command.

IRQ chip setup in i8259.c and io_apic.c can only use a vector if it is
NOT reserved. Lguest (and others) can only use a vector if it IS
reserved. Because vectors are not really managed, they can't be
unreserved and can only be reserved at boot time. There is no
arbitration between users of vectors. All that mechanism would add
bulk and it is really doubtful that anyone needs it.

0002 adds the syscall_vector struct member to lguest_data

0003 are what I hope is the final set of changes to lguest.c to
support ELF files with non-page-aligned sections in the file.

0004 are the mods to drives/lguest to support system call # from the guest .

These patches have all been tested, with both plan 9 and linux, with
the reserve_vector keyword set and not set. Plan 9 fails as expected
when the reserve_vector keyword is not used.

I'm hoping we're all done here, I want to start moving Plan 9 guest
drivers to virtio now.

thanks

ron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-These-mods-support-reserving-certain-vectors-so-that.patch
Type: text/x-patch
Size: 4280 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/lguest/attachments/20070904/22cc98bf/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Add-the-system-call-struct-member-for-guests.patch
Type: text/x-patch
Size: 896 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/lguest/attachments/20070904/22cc98bf/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-These-are-changes-to-Rusty-s-changes-to-my-changes-t.patch
Type: text/x-patch
Size: 4369 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/lguest/attachments/20070904/22cc98bf/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-These-modifications-allow-require-guests-to-specify.patch
Type: text/x-patch
Size: 9104 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/lguest/attachments/20070904/22cc98bf/attachment-0003.bin>


More information about the Lguest mailing list