qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 12/12 v12] introduce a new monitor command 'dump


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH 12/12 v12] introduce a new monitor command 'dump-guest-memory' to dump guest's memory
Date: Wed, 18 Apr 2012 09:35:40 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1

On 04/18/2012 03:37 AM, Wen Congyang wrote:
>>>   2. This command doesn't support the fd that is is associated with a pipe,
>>>      socket, or FIFO(lseek will fail with such fd).
>>
>> How hard would it be to lift that restriction ? When libvirt does save to
>> file, or core dump these days, we tend to pass a pipe FD to QEMU, which
>> is connected to libvirt's I/O helper process. The reason for this is that
>> it lets us turn on O_DIRECT for the dumped data, which has proved to be
>> quite an important feature for oVirt. So I'd rather like to keep that
>> ability with the new dump command.
> 
> The reason is that we will use lseek(fd, ...). If you pass a pipe FD
> to qemu, lseek() will fail. I donot know the note size before we
> write it to the core, so I use lseek()...

The question, then, is why we don't know the note size in advance, and
what it would take to be able to compute it in advance so that the
output file can be written in a single pass without needing lseek().

-- 
Eric Blake   address@hidden    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]