* [Qemu-devel] KVM call agenda for Oct 19 @ 2010-10-18 15:43 Juan Quintela 2010-10-19 2:11 ` [Qemu-devel] " Chris Wright 0 siblings, 1 reply; 13+ messages in thread From: Juan Quintela @ 2010-10-18 15:43 UTC (permalink / raw) To: kvm, qemu-devel Please send in any agenda items you are interested in covering. thanks, Juan. ^ permalink raw reply [flat|nested] 13+ messages in thread
* [Qemu-devel] Re: KVM call agenda for Oct 19 2010-10-18 15:43 [Qemu-devel] KVM call agenda for Oct 19 Juan Quintela @ 2010-10-19 2:11 ` Chris Wright 2010-10-19 12:48 ` Dor Laor 0 siblings, 1 reply; 13+ messages in thread From: Chris Wright @ 2010-10-19 2:11 UTC (permalink / raw) To: Juan Quintela; +Cc: chrisw, Venkateswararao Jujjuri (JV), qemu-devel, kvm * Juan Quintela (quintela@redhat.com) wrote: > > Please send in any agenda items you are interested in covering. - 0.13.X -stable handoff - 0.14 planning - threadlet work - virtfs proposals ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] Re: KVM call agenda for Oct 19 2010-10-19 2:11 ` [Qemu-devel] " Chris Wright @ 2010-10-19 12:48 ` Dor Laor 2010-10-19 12:55 ` Avi Kivity ` (2 more replies) 0 siblings, 3 replies; 13+ messages in thread From: Dor Laor @ 2010-10-19 12:48 UTC (permalink / raw) To: Chris Wright Cc: chrisw, kvm, Juan Quintela, qemu-devel, Ayal Baron, Venkateswararao Jujjuri (JV) On 10/19/2010 04:11 AM, Chris Wright wrote: > * Juan Quintela (quintela@redhat.com) wrote: >> >> Please send in any agenda items you are interested in covering. > > - 0.13.X -stable handoff > - 0.14 planning > - threadlet work > - virtfs proposals > - Live snapshots - We were asked to add this feature for external qcow2 images. Will simple approach of fsync + tracking each requested backing file (it can be per vDisk) and re-open the new image would be accepted? - Integration with FS freeze for consistent guest app snapshot Many apps do not sync their ram state to disk correctly or frequent enough. Physical world backup software calls fs freeze on xfs and VSS for windows to make the backup consistent. In order to integrated this with live snapshots we need a guest agent to trigger the guest fs freeze. We can either have qemu communicate with the agent directly through virtio-serial or have a mgmt daemon use virtio-serial to communicate with the guest in addition to QMP messages about the live snapshot state. Preferences? The first solution complicates qemu while the second complicates mgmt. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] Re: KVM call agenda for Oct 19 2010-10-19 12:48 ` Dor Laor @ 2010-10-19 12:55 ` Avi Kivity 2010-10-19 12:58 ` Dor Laor 2010-10-19 13:22 ` Anthony Liguori 2010-10-19 13:28 ` Anthony Liguori 2 siblings, 1 reply; 13+ messages in thread From: Avi Kivity @ 2010-10-19 12:55 UTC (permalink / raw) To: dlaor Cc: chrisw, kvm, Juan Quintela, qemu-devel, Chris Wright, Ayal Baron, Venkateswararao Jujjuri (JV) On 10/19/2010 02:48 PM, Dor Laor wrote: > On 10/19/2010 04:11 AM, Chris Wright wrote: >> * Juan Quintela (quintela@redhat.com) wrote: >>> >>> Please send in any agenda items you are interested in covering. >> >> - 0.13.X -stable handoff >> - 0.14 planning >> - threadlet work >> - virtfs proposals >> > > - Live snapshots > - We were asked to add this feature for external qcow2 > images. Will simple approach of fsync + tracking each requested > backing file (it can be per vDisk) and re-open the new image would > be accepted? > - Integration with FS freeze for consistent guest app snapshot > Many apps do not sync their ram state to disk correctly or frequent > enough. Physical world backup software calls fs freeze on xfs and > VSS for windows to make the backup consistent. > In order to integrated this with live snapshots we need a guest > agent to trigger the guest fs freeze. > We can either have qemu communicate with the agent directly through > virtio-serial or have a mgmt daemon use virtio-serial to > communicate with the guest in addition to QMP messages about the > live snapshot state. > Preferences? The first solution complicates qemu while the second > complicates mgmt. Third option, make the freeze path management -> qemu -> virtio-blk -> guest kernel -> file systems. The advantage is that it's easy to associate file systems with a block device this way. -- error compiling committee.c: too many arguments to function ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] Re: KVM call agenda for Oct 19 2010-10-19 12:55 ` Avi Kivity @ 2010-10-19 12:58 ` Dor Laor 2010-10-19 13:03 ` Avi Kivity 0 siblings, 1 reply; 13+ messages in thread From: Dor Laor @ 2010-10-19 12:58 UTC (permalink / raw) To: Avi Kivity Cc: chrisw, kvm, Juan Quintela, qemu-devel, Chris Wright, Ayal Baron, Venkateswararao Jujjuri (JV) On 10/19/2010 02:55 PM, Avi Kivity wrote: > On 10/19/2010 02:48 PM, Dor Laor wrote: >> On 10/19/2010 04:11 AM, Chris Wright wrote: >>> * Juan Quintela (quintela@redhat.com) wrote: >>>> >>>> Please send in any agenda items you are interested in covering. >>> >>> - 0.13.X -stable handoff >>> - 0.14 planning >>> - threadlet work >>> - virtfs proposals >>> >> >> - Live snapshots >> - We were asked to add this feature for external qcow2 >> images. Will simple approach of fsync + tracking each requested >> backing file (it can be per vDisk) and re-open the new image would >> be accepted? >> - Integration with FS freeze for consistent guest app snapshot >> Many apps do not sync their ram state to disk correctly or frequent >> enough. Physical world backup software calls fs freeze on xfs and >> VSS for windows to make the backup consistent. >> In order to integrated this with live snapshots we need a guest >> agent to trigger the guest fs freeze. >> We can either have qemu communicate with the agent directly through >> virtio-serial or have a mgmt daemon use virtio-serial to >> communicate with the guest in addition to QMP messages about the >> live snapshot state. >> Preferences? The first solution complicates qemu while the second >> complicates mgmt. > > Third option, make the freeze path management -> qemu -> virtio-blk -> > guest kernel -> file systems. The advantage is that it's easy to > associate file systems with a block device this way. OTH the userspace freeze path already exist and now you create another path. What about FS that span over LVM with multiple drives? IDE/SCSI? ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] Re: KVM call agenda for Oct 19 2010-10-19 12:58 ` Dor Laor @ 2010-10-19 13:03 ` Avi Kivity 2010-10-19 13:18 ` Anthony Liguori 0 siblings, 1 reply; 13+ messages in thread From: Avi Kivity @ 2010-10-19 13:03 UTC (permalink / raw) To: dlaor Cc: chrisw, kvm, Juan Quintela, qemu-devel, Chris Wright, Ayal Baron, Venkateswararao Jujjuri (JV) On 10/19/2010 02:58 PM, Dor Laor wrote: > On 10/19/2010 02:55 PM, Avi Kivity wrote: >> On 10/19/2010 02:48 PM, Dor Laor wrote: >>> On 10/19/2010 04:11 AM, Chris Wright wrote: >>>> * Juan Quintela (quintela@redhat.com) wrote: >>>>> >>>>> Please send in any agenda items you are interested in covering. >>>> >>>> - 0.13.X -stable handoff >>>> - 0.14 planning >>>> - threadlet work >>>> - virtfs proposals >>>> >>> >>> - Live snapshots >>> - We were asked to add this feature for external qcow2 >>> images. Will simple approach of fsync + tracking each requested >>> backing file (it can be per vDisk) and re-open the new image would >>> be accepted? >>> - Integration with FS freeze for consistent guest app snapshot >>> Many apps do not sync their ram state to disk correctly or frequent >>> enough. Physical world backup software calls fs freeze on xfs and >>> VSS for windows to make the backup consistent. >>> In order to integrated this with live snapshots we need a guest >>> agent to trigger the guest fs freeze. >>> We can either have qemu communicate with the agent directly through >>> virtio-serial or have a mgmt daemon use virtio-serial to >>> communicate with the guest in addition to QMP messages about the >>> live snapshot state. >>> Preferences? The first solution complicates qemu while the second >>> complicates mgmt. >> >> Third option, make the freeze path management -> qemu -> virtio-blk -> >> guest kernel -> file systems. The advantage is that it's easy to >> associate file systems with a block device this way. > > OTH the userspace freeze path already exist and now you create another > path. I guess we would still have a userspace daemon; instead of talking to virtio-serial it talks to virtio-blk. So: management -> qemu -> virtio-blk -> guest driver -> kernel fs resolver -> daemon -> apps Yuck. > What about FS that span over LVM with multiple drives? IDE/SCSI? Good points. -- error compiling committee.c: too many arguments to function ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] Re: KVM call agenda for Oct 19 2010-10-19 13:03 ` Avi Kivity @ 2010-10-19 13:18 ` Anthony Liguori 0 siblings, 0 replies; 13+ messages in thread From: Anthony Liguori @ 2010-10-19 13:18 UTC (permalink / raw) To: Avi Kivity Cc: chrisw, kvm, Juan Quintela, dlaor, qemu-devel, Chris Wright, Ayal Baron, Michael D Roth, Venkateswararao Jujjuri (JV) On 10/19/2010 08:03 AM, Avi Kivity wrote: > On 10/19/2010 02:58 PM, Dor Laor wrote: >> On 10/19/2010 02:55 PM, Avi Kivity wrote: >>> On 10/19/2010 02:48 PM, Dor Laor wrote: >>>> On 10/19/2010 04:11 AM, Chris Wright wrote: >>>>> * Juan Quintela (quintela@redhat.com) wrote: >>>>>> >>>>>> Please send in any agenda items you are interested in covering. >>>>> >>>>> - 0.13.X -stable handoff >>>>> - 0.14 planning >>>>> - threadlet work >>>>> - virtfs proposals >>>>> >>>> >>>> - Live snapshots >>>> - We were asked to add this feature for external qcow2 >>>> images. Will simple approach of fsync + tracking each requested >>>> backing file (it can be per vDisk) and re-open the new image would >>>> be accepted? >>>> - Integration with FS freeze for consistent guest app snapshot >>>> Many apps do not sync their ram state to disk correctly or frequent >>>> enough. Physical world backup software calls fs freeze on xfs and >>>> VSS for windows to make the backup consistent. >>>> In order to integrated this with live snapshots we need a guest >>>> agent to trigger the guest fs freeze. >>>> We can either have qemu communicate with the agent directly through >>>> virtio-serial or have a mgmt daemon use virtio-serial to >>>> communicate with the guest in addition to QMP messages about the >>>> live snapshot state. >>>> Preferences? The first solution complicates qemu while the second >>>> complicates mgmt. >>> >>> Third option, make the freeze path management -> qemu -> virtio-blk -> >>> guest kernel -> file systems. The advantage is that it's easy to >>> associate file systems with a block device this way. >> >> OTH the userspace freeze path already exist and now you create >> another path. > > I guess we would still have a userspace daemon; instead of talking to > virtio-serial it talks to virtio-blk. So: > > management -> qemu -> virtio-blk -> guest driver -> kernel fs > resolver -> daemon -> apps > > Yuck. Yeah, in Windows, I'm pretty sure the freeze API is a userspace concept. Various apps can hook into it to serialize their state. At the risk of stealing Mike's thunder, we've actually been working on a simple guest agent exactly for this type of task. Mike's planning an RFC for later this week but for those that are interested the repo is at http://repo.or.cz/w/qemu/mdroth.git Regards, Anthony Liguori > >> What about FS that span over LVM with multiple drives? IDE/SCSI? > > Good points. > ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] Re: KVM call agenda for Oct 19 2010-10-19 12:48 ` Dor Laor 2010-10-19 12:55 ` Avi Kivity @ 2010-10-19 13:22 ` Anthony Liguori 2010-10-19 13:27 ` Avi Kivity 2010-10-19 13:28 ` Anthony Liguori 2 siblings, 1 reply; 13+ messages in thread From: Anthony Liguori @ 2010-10-19 13:22 UTC (permalink / raw) To: dlaor Cc: chrisw, kvm, Juan Quintela, qemu-devel, Chris Wright, Ayal Baron, Venkateswararao Jujjuri (JV) On 10/19/2010 07:48 AM, Dor Laor wrote: > On 10/19/2010 04:11 AM, Chris Wright wrote: >> * Juan Quintela (quintela@redhat.com) wrote: >>> >>> Please send in any agenda items you are interested in covering. >> >> - 0.13.X -stable handoff >> - 0.14 planning >> - threadlet work >> - virtfs proposals >> > > - Live snapshots > - We were asked to add this feature for external qcow2 > images. Will simple approach of fsync + tracking each requested > backing file (it can be per vDisk) and re-open the new image would > be accepted? I had assumed that this would involve: qemu -hda windows.img (qemu) snapshot ide0-disk0 snap0.img 1) create snap0.img internally by doing the equivalent of `qemu-img create -f qcow2 -b windows.img snap0.img' 2) bdrv_flush('ide0-disk0') 3) bdrv_open(snap0.img) 4) bdrv_close(windows.img) 5) rename('windows.img', 'windows.img.tmp') 6) rename('snap0.img', 'windows.img') 7) rename('windows.img.tmp', 'snap0.img') Regards, Anthony Liguori > - Integration with FS freeze for consistent guest app snapshot > Many apps do not sync their ram state to disk correctly or frequent > enough. Physical world backup software calls fs freeze on xfs and > VSS for windows to make the backup consistent. > In order to integrated this with live snapshots we need a guest > agent to trigger the guest fs freeze. > We can either have qemu communicate with the agent directly through > virtio-serial or have a mgmt daemon use virtio-serial to > communicate with the guest in addition to QMP messages about the > live snapshot state. > Preferences? The first solution complicates qemu while the second > complicates mgmt. > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] Re: KVM call agenda for Oct 19 2010-10-19 13:22 ` Anthony Liguori @ 2010-10-19 13:27 ` Avi Kivity 2010-10-19 13:33 ` Anthony Liguori 0 siblings, 1 reply; 13+ messages in thread From: Avi Kivity @ 2010-10-19 13:27 UTC (permalink / raw) To: Anthony Liguori Cc: chrisw, kvm, Juan Quintela, dlaor, qemu-devel, Chris Wright, Ayal Baron, Venkateswararao Jujjuri (JV) On 10/19/2010 03:22 PM, Anthony Liguori wrote: > > I had assumed that this would involve: > > qemu -hda windows.img > > (qemu) snapshot ide0-disk0 snap0.img > > 1) create snap0.img internally by doing the equivalent of `qemu-img > create -f qcow2 -b windows.img snap0.img' > 2) bdrv_flush('ide0-disk0') > 3) bdrv_open(snap0.img) > 4) bdrv_close(windows.img) > 5) rename('windows.img', 'windows.img.tmp') > 6) rename('snap0.img', 'windows.img') > 7) rename('windows.img.tmp', 'snap0.img') > Looks reasonable. Would be interesting to look at this as a use case for the threading work. We should eventually be able to create a snapshot without stalling vcpus (stalling I/O of course allowed). -- error compiling committee.c: too many arguments to function ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] Re: KVM call agenda for Oct 19 2010-10-19 13:27 ` Avi Kivity @ 2010-10-19 13:33 ` Anthony Liguori 2010-10-19 13:38 ` Stefan Hajnoczi 0 siblings, 1 reply; 13+ messages in thread From: Anthony Liguori @ 2010-10-19 13:33 UTC (permalink / raw) To: Avi Kivity Cc: chrisw, kvm, Juan Quintela, dlaor, qemu-devel, Chris Wright, Ayal Baron, Venkateswararao Jujjuri (JV) On 10/19/2010 08:27 AM, Avi Kivity wrote: > On 10/19/2010 03:22 PM, Anthony Liguori wrote: >> >> I had assumed that this would involve: >> >> qemu -hda windows.img >> >> (qemu) snapshot ide0-disk0 snap0.img >> >> 1) create snap0.img internally by doing the equivalent of `qemu-img >> create -f qcow2 -b windows.img snap0.img' >> 2) bdrv_flush('ide0-disk0') >> 3) bdrv_open(snap0.img) >> 4) bdrv_close(windows.img) >> 5) rename('windows.img', 'windows.img.tmp') >> 6) rename('snap0.img', 'windows.img') >> 7) rename('windows.img.tmp', 'snap0.img') >> > > Looks reasonable. > > Would be interesting to look at this as a use case for the threading > work. We should eventually be able to create a snapshot without > stalling vcpus (stalling I/O of course allowed). If we had another block-level command, like bdrv_aio_freeze(), that queued all pending requests until the given callback completed, it would be very easy to do this entirely asynchronously. For instance: bdrv_aio_freeze(create_snapshot) create_snapshot(): bdrv_aio_flush(done_flush) done_flush(): bdrv_open(...) bdrv_close(...) ... Of course, closing a device while it's being frozen is probably a recipe for disaster but you get the idea :-) Regards, Anthony Liguori ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] Re: KVM call agenda for Oct 19 2010-10-19 13:33 ` Anthony Liguori @ 2010-10-19 13:38 ` Stefan Hajnoczi 2010-10-19 13:55 ` Avi Kivity 0 siblings, 1 reply; 13+ messages in thread From: Stefan Hajnoczi @ 2010-10-19 13:38 UTC (permalink / raw) To: Anthony Liguori Cc: chrisw, kvm, Juan Quintela, dlaor, qemu-devel, Chris Wright, Ayal Baron, Avi Kivity, Venkateswararao Jujjuri (JV) On Tue, Oct 19, 2010 at 2:33 PM, Anthony Liguori <anthony@codemonkey.ws> wrote: > On 10/19/2010 08:27 AM, Avi Kivity wrote: >> >> On 10/19/2010 03:22 PM, Anthony Liguori wrote: >>> >>> I had assumed that this would involve: >>> >>> qemu -hda windows.img >>> >>> (qemu) snapshot ide0-disk0 snap0.img >>> >>> 1) create snap0.img internally by doing the equivalent of `qemu-img >>> create -f qcow2 -b windows.img snap0.img' >>> 2) bdrv_flush('ide0-disk0') >>> 3) bdrv_open(snap0.img) >>> 4) bdrv_close(windows.img) >>> 5) rename('windows.img', 'windows.img.tmp') >>> 6) rename('snap0.img', 'windows.img') >>> 7) rename('windows.img.tmp', 'snap0.img') >>> >> >> Looks reasonable. >> >> Would be interesting to look at this as a use case for the threading work. >> We should eventually be able to create a snapshot without stalling vcpus >> (stalling I/O of course allowed). > > If we had another block-level command, like bdrv_aio_freeze(), that queued > all pending requests until the given callback completed, it would be very > easy to do this entirely asynchronously. For instance: > > bdrv_aio_freeze(create_snapshot) > > create_snapshot(): > bdrv_aio_flush(done_flush) > > done_flush(): > bdrv_open(...) > bdrv_close(...) > ... > > Of course, closing a device while it's being frozen is probably a recipe for > disaster but you get the idea :-) bdrv_aio_freeze() or any mechanism to deal with pending requests in the generic block code would be a good step for future "live" support of other operations like truncate. Stefan ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] Re: KVM call agenda for Oct 19 2010-10-19 13:38 ` Stefan Hajnoczi @ 2010-10-19 13:55 ` Avi Kivity 0 siblings, 0 replies; 13+ messages in thread From: Avi Kivity @ 2010-10-19 13:55 UTC (permalink / raw) To: Stefan Hajnoczi Cc: chrisw, kvm, Juan Quintela, dlaor, qemu-devel, Chris Wright, Ayal Baron, Venkateswararao Jujjuri (JV) On 10/19/2010 03:38 PM, Stefan Hajnoczi wrote: > bdrv_aio_freeze() or any mechanism to deal with pending requests in > the generic block code would be a good step for future "live" support > of other operations like truncate. + logical disk grow, etc. -- error compiling committee.c: too many arguments to function ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] Re: KVM call agenda for Oct 19 2010-10-19 12:48 ` Dor Laor 2010-10-19 12:55 ` Avi Kivity 2010-10-19 13:22 ` Anthony Liguori @ 2010-10-19 13:28 ` Anthony Liguori 2 siblings, 0 replies; 13+ messages in thread From: Anthony Liguori @ 2010-10-19 13:28 UTC (permalink / raw) To: dlaor Cc: chrisw, kvm, Juan Quintela, qemu-devel, Chris Wright, Ayal Baron, Alon Levy, Venkateswararao Jujjuri (JV) On 10/19/2010 07:48 AM, Dor Laor wrote: > On 10/19/2010 04:11 AM, Chris Wright wrote: >> * Juan Quintela (quintela@redhat.com) wrote: >>> >>> Please send in any agenda items you are interested in covering. >> >> - 0.13.X -stable handoff >> - 0.14 planning >> - threadlet work >> - virtfs proposals >> > > - Live snapshots > - We were asked to add this feature for external qcow2 > images. Will simple approach of fsync + tracking each requested > backing file (it can be per vDisk) and re-open the new image would > be accepted? > - Integration with FS freeze for consistent guest app snapshot > Many apps do not sync their ram state to disk correctly or frequent > enough. Physical world backup software calls fs freeze on xfs and > VSS for windows to make the backup consistent. > In order to integrated this with live snapshots we need a guest > agent to trigger the guest fs freeze. > We can either have qemu communicate with the agent directly through > virtio-serial or have a mgmt daemon use virtio-serial to > communicate with the guest in addition to QMP messages about the > live snapshot state. > Preferences? The first solution complicates qemu while the second > complicates mgmt. - usb-ccid (aka external device modules) We probably won't get to it for today's call, but we should try to queue this topic up for discussion. We have a similar situation with vtpm (existing device model that wants to integrate with QEMU). My position so far has been that we should avoid external device models because of difficulty integrating QEMU features with external device models. However, I'd like to hear opinions from a wider audience. Regards, Anthony Liguori > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2010-10-19 13:55 UTC | newest] Thread overview: 13+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-10-18 15:43 [Qemu-devel] KVM call agenda for Oct 19 Juan Quintela 2010-10-19 2:11 ` [Qemu-devel] " Chris Wright 2010-10-19 12:48 ` Dor Laor 2010-10-19 12:55 ` Avi Kivity 2010-10-19 12:58 ` Dor Laor 2010-10-19 13:03 ` Avi Kivity 2010-10-19 13:18 ` Anthony Liguori 2010-10-19 13:22 ` Anthony Liguori 2010-10-19 13:27 ` Avi Kivity 2010-10-19 13:33 ` Anthony Liguori 2010-10-19 13:38 ` Stefan Hajnoczi 2010-10-19 13:55 ` Avi Kivity 2010-10-19 13:28 ` Anthony Liguori
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).