qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Making qemu images executable (and store command line arguments in them =P)
@ 2007-08-15 22:52 Jorge Lucángeli Obes
  2007-08-15 23:52 ` Mark Williamson
  2007-08-16  4:22 ` [Qemu-devel] Re: [kvm-devel] " H. Peter Anvin
  0 siblings, 2 replies; 9+ messages in thread
From: Jorge Lucángeli Obes @ 2007-08-15 22:52 UTC (permalink / raw)
  To: kvm-devel, qemu-devel

I've been giving some thought to Anthony's idea:

http://kvm.qumranet.com/kvmwiki/Specs/StoringCommandLineInImage

However, maybe I'm just too much on vacations, but I don't seem to
come up with a nice way of doing this. Everything keeps coming back to
creating a new 'container' image format and then implementing block
layer functions that only add the number of sectors occupied by the
command-line to the read and write calls made by QEMU, and then just
relay those calls to the image-specific functions. That doesn't sound
very efficient.

The '#!' trick works nice with scripts, but I don't see it playing
very well with images. ¿Comments? ¿Pointers?

Cheers,
Jorge

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: [Qemu-devel] Making qemu images executable (and store command line arguments in them =P)
@ 2007-08-16 17:05 Ben Taylor
  2007-08-16 20:36 ` Dan Shearer
  0 siblings, 1 reply; 9+ messages in thread
From: Ben Taylor @ 2007-08-16 17:05 UTC (permalink / raw)
  To: kvm-devel, qemu-devel; +Cc: Jorge Lucángeli Obes


---- "Jorge Lucángeli Obes" <t4m5yn@gmail.com> wrote: 
> I've been giving some thought to Anthony's idea:
> 
> http://kvm.qumranet.com/kvmwiki/Specs/StoringCommandLineInImage
> 
> However, maybe I'm just too much on vacations, but I don't seem to
> come up with a nice way of doing this. Everything keeps coming back to
> creating a new 'container' image format and then implementing block
> layer functions that only add the number of sectors occupied by the
> command-line to the read and write calls made by QEMU, and then just
> relay those calls to the image-specific functions. That doesn't sound
> very efficient.

No, and it fundamentally breaks using a real disk with QEMU.

> The '#!' trick works nice with scripts, but I don't see it playing
> very well with images. ¿Comments? ¿Pointers?

Personally, I'm not sure why we wouldn't just write out the command line
data to a file tied to the primary image file, with some kind of time stamp
to correlate the data from the command line and the last updated time
of the primary image file.  It's intuitive, and doesn't require a bucket of
programming to make work.  The down side is if qemu crashes, the
time stamp between the parameter file and the image file may indicate
the potential for "difference", but this can just be a notice (just as snapshots
used to do with the image files in 0.7.x)

The only hard part  here is when a real physical disk is used with
QEMU since it's harder to make sure the name is valid.

Thoughts?

Ben

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

end of thread, other threads:[~2007-08-16 20:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-15 22:52 [Qemu-devel] Making qemu images executable (and store command line arguments in them =P) Jorge Lucángeli Obes
2007-08-15 23:52 ` Mark Williamson
2007-08-16  5:21   ` [kvm-devel] " Avi Kivity
2007-08-16 16:11   ` Andreas Färber
2007-08-16  4:22 ` [Qemu-devel] Re: [kvm-devel] " H. Peter Anvin
2007-08-16  5:23   ` Avi Kivity
2007-08-16 15:12   ` Luke -Jr
  -- strict thread matches above, loose matches on Subject: below --
2007-08-16 17:05 [Qemu-devel] " Ben Taylor
2007-08-16 20:36 ` Dan Shearer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).