qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Reopen file descriptors on 'cont' command
@ 2015-02-26  0:32 Christopher Pereira
  2015-03-06 17:19 ` Stefan Hajnoczi
  0 siblings, 1 reply; 3+ messages in thread
From: Christopher Pereira @ 2015-02-26  0:32 UTC (permalink / raw)
  To: qemu-devel

Hi,

Does qemu reopen files on a 'cont' command?

When working with images on a gluster volume, file descriptors may get 
into a bad state because of network timeouts, remounting a share, 
etc...and reinitializing file descriptors may be usefull to get paused 
VMs up again.

Related BZ:
https://bugzilla.redhat.com/show_bug.cgi?id=1058300

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

* Re: [Qemu-devel] Reopen file descriptors on 'cont' command
  2015-02-26  0:32 [Qemu-devel] Reopen file descriptors on 'cont' command Christopher Pereira
@ 2015-03-06 17:19 ` Stefan Hajnoczi
  2015-03-06 17:43   ` Christopher Pereira
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Hajnoczi @ 2015-03-06 17:19 UTC (permalink / raw)
  To: Christopher Pereira; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 734 bytes --]

On Wed, Feb 25, 2015 at 09:32:18PM -0300, Christopher Pereira wrote:
> Does qemu reopen files on a 'cont' command?
> 
> When working with images on a gluster volume, file descriptors may get into
> a bad state because of network timeouts, remounting a share, etc...and
> reinitializing file descriptors may be usefull to get paused VMs up again.
> 
> Related BZ:
> https://bugzilla.redhat.com/show_bug.cgi?id=1058300

No, QEMU doesn't reopen file descriptors.

This can be challenging because QEMU supports file descriptor passing,
which is used when the QEMU process is isolated using SELinux so it
cannot open files itself.  Reopening would require new file descriptors
passed in from the management tool.

Stefan

[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]

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

* Re: [Qemu-devel] Reopen file descriptors on 'cont' command
  2015-03-06 17:19 ` Stefan Hajnoczi
@ 2015-03-06 17:43   ` Christopher Pereira
  0 siblings, 0 replies; 3+ messages in thread
From: Christopher Pereira @ 2015-03-06 17:43 UTC (permalink / raw)
  To: Stefan Hajnoczi; +Cc: qemu-devel

On 06-03-2015 14:19, Stefan Hajnoczi wrote:
> On Wed, Feb 25, 2015 at 09:32:18PM -0300, Christopher Pereira wrote:
>> Does qemu reopen files on a 'cont' command?
>>
>> When working with images on a gluster volume, file descriptors may get into
>> a bad state because of network timeouts, remounting a share, etc...and
>> reinitializing file descriptors may be usefull to get paused VMs up again.
>>
>> Related BZ:
>> https://bugzilla.redhat.com/show_bug.cgi?id=1058300
> No, QEMU doesn't reopen file descriptors.
>
> This can be challenging because QEMU supports file descriptor passing,
> which is used when the QEMU process is isolated using SELinux so it
> cannot open files itself.  Reopening would require new file descriptors
> passed in from the management tool.

Thanks Stefan.

I confirmed that libvirtd is not passing a FD to QEMU, but an image path.
Is QEMU reopening this image file when the VM is resumed?
QEMU must check if the FD (initialized by QEMU) is still valid, 
especially after resuming a paused VM.

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

end of thread, other threads:[~2015-03-06 17:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-26  0:32 [Qemu-devel] Reopen file descriptors on 'cont' command Christopher Pereira
2015-03-06 17:19 ` Stefan Hajnoczi
2015-03-06 17:43   ` Christopher Pereira

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).