[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2] Add support for fd: protocol
From: |
Avi Kivity |
Subject: |
Re: [Qemu-devel] [PATCH v2] Add support for fd: protocol |
Date: |
Mon, 20 Jun 2011 16:40:33 +0300 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc15 Thunderbird/3.1.10 |
On 06/14/2011 04:31 PM, Corey Bryant wrote:
- Starting Qemu with a backing file
For this we could tell qemu that a file named "xyz" is available via fd
n, via an extension of the getfd command.
For example
(qemu) getfd path="/images/my-image.img"
(qemu) getfd path="/images/template.img"
(qemu) drive-add path="/images/my-image.img"
The open() for my-image.img first looks up the name in the getfd
database, and finds it, so it returns the fd from there instead of
opening. It then opens the backing file ("template.img") and looks it
up again, and finds the second fd from the session.
The result is that open()s are satisfied from the monitor, instead of
the host kernel, but without reversing the request/reply nature of the
monitor protocol.
A similar extension could be added to the command line:
qemu -drive file=fd:4,cache=none -path-alias
name=/images/template.img,path=fd:5
Here the main image is opened via a fd 4; if it needs template.img, it
gets shunted to fd 5.
--
error compiling committee.c: too many arguments to function
Re: [Qemu-devel] [PATCH v2] Add support for fd: protocol, Blue Swirl, 2011/06/15
Re: [Qemu-devel] [PATCH v2] Add support for fd: protocol,
Avi Kivity <=