[Qemu-devel] [PATCH v5 1.0] configure: build position independent executables across for x86 hosts

2011-11-15 Thread Avi Kivity
Change the default on x86 hosts to building PIE (position independent executables); instead of restricting the option to user-only targets, apply it to all targets. In addition, set the relocation sections to read-only (relro) when available; this reduces the attack surface by disallowing changes

Re: [Qemu-devel] [PATCH 0/5] docs: convert specifications to markdown

2011-11-15 Thread Avi Kivity
On 11/15/2011 12:41 AM, Anthony Liguori wrote: > Right now our specs are written in psuedo-wiki syntax. This series converts > them to markdown. markdown is a simple markup format that's gaining in > popularity. > > The big advantage of using markdown is that there are tools that can convert > i

[Qemu-devel] [PATCH v6 1.0] configure: build position independent executables on x86 hosts

2011-11-15 Thread Avi Kivity
Change the default on x86 hosts to building PIE (position independent executables); instead of restricting the option to user-only targets, apply it to all targets. In addition, set the relocation sections to read-only (relro) when available; this reduces the attack surface by disallowing changes

Re: [Qemu-devel] [PATCH v5 1.0] configure: build position independent executables across for x86 hosts

2011-11-15 Thread Peter Maydell
On 15 November 2011 08:00, Avi Kivity wrote: > @@ -1099,6 +1099,37 @@ for flag in $gcc_flags; do >     fi >  done > > +if test "$pie" = "yes" -a "$static" = "yes" ; then > +  echo "static and pie are mutually incompatible" > +  exit 1 > +fi The -a operator to test has been marked obsolescent in

Re: [Qemu-devel] [PATCH v5 1.0] configure: build position independent executables across for x86 hosts

2011-11-15 Thread Avi Kivity
On 11/15/2011 11:10 AM, Peter Maydell wrote: > On 15 November 2011 08:00, Avi Kivity wrote: > > > @@ -1099,6 +1099,37 @@ for flag in $gcc_flags; do > > fi > > done > > > > +if test "$pie" = "yes" -a "$static" = "yes" ; then > > + echo "static and pie are mutually incompatible" > > + exit 1

Re: [Qemu-devel] Memory sync algorithm during migration

2011-11-15 Thread Takuya Yoshikawa
Adding qemu-devel ML to CC. Your question should have been sent to qemu-devel ML because the logic is implemented in QEMU, not KVM. (2011/11/11 1:35), Oliver Hookins wrote: Hi, I am performing some benchmarks on KVM migration on two different types of VM. One has 4GB RAM and the other 32GB. Mo

Re: [Qemu-devel] [PATCH] migration: add a MAINTAINERS entry for migration

2011-11-15 Thread Kevin Wolf
Am 14.11.2011 22:08, schrieb Anthony Liguori: > On 11/14/2011 11:40 AM, Juan Quintela wrote: >> Anthony Liguori wrote: >>> I think this is an accurate reflection of the state of migration today. >>> This >>> is the second release in a row where we're scrambling to fix a critical >>> issue >>> i

[Qemu-devel] [PATCH v7 1.0] configure: build position independent executables on x86 hosts

2011-11-15 Thread Avi Kivity
Change the default on x86 hosts to building PIE (position independent executables); instead of restricting the option to user-only targets, apply it to all targets. In addition, set the relocation sections to read-only (relro) when available; this reduces the attack surface by disallowing changes

Re: [Qemu-devel] [PATCH] migration: add a MAINTAINERS entry for migration

2011-11-15 Thread Stefan Hajnoczi
On Mon, Nov 14, 2011 at 03:08:25PM -0600, Anthony Liguori wrote: > On 11/14/2011 11:40 AM, Juan Quintela wrote: > >Anthony Liguori wrote: > >>I think this is an accurate reflection of the state of migration today. > >>This > >>is the second release in a row where we're scrambling to fix a critic

Re: [Qemu-devel] Memory sync algorithm during migration

2011-11-15 Thread Juan Quintela
Takuya Yoshikawa wrote: > Adding qemu-devel ML to CC. > > Your question should have been sent to qemu-devel ML because the logic > is implemented in QEMU, not KVM. > > (2011/11/11 1:35), Oliver Hookins wrote: >> Hi, >> >> I am performing some benchmarks on KVM migration on two different types of

Re: [Qemu-devel] [RFC 1.0] pc_piix: set qxl revision to 2 for pc-0.14

2011-11-15 Thread Gerd Hoffmann
Hi, > I mean, change stable-0.15 so that if it is invoked with -M 0.14, you > get a rev 2 qxl device. 0.15 has qxl rev 2 too, 1.0 got rev 3. No need to do anything for -stable. Also 0.15 didn't got its own machine type, so the pc-0.14 compat property (master branch) covers both 0.14 and 0.15.

Re: [Qemu-devel] Memory sync algorithm during migration

2011-11-15 Thread Oliver Hookins
On Tue, Nov 15, 2011 at 11:47:58AM +0100, ext Juan Quintela wrote: > Takuya Yoshikawa wrote: > > Adding qemu-devel ML to CC. > > > > Your question should have been sent to qemu-devel ML because the logic > > is implemented in QEMU, not KVM. > > > > (2011/11/11 1:35), Oliver Hookins wrote: > >> Hi,

[Qemu-devel] [PATCH] Fixing some spelling in docs/libcacard.txt

2011-11-15 Thread matthias . bgg
From: Matthias Brugger Signed-off-by: Matthias Brugger --- docs/libcacard.txt | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/libcacard.txt b/docs/libcacard.txt index 5dee6fa..576af57 100644 --- a/docs/libcacard.txt +++ b/docs/libcacard.txt @@ -170,7 +1

[Qemu-devel] [PATCH] virtio-blk: fix cross-endian config space

2011-11-15 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/virtio-blk.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index 01aeb28..4a15f0c 100644 --- a/hw/virtio-blk.c +++ b/hw/virtio-blk.c @@ -481,14 +481,14 @@ static void virtio_blk_update_config(Vir

[Qemu-devel] [PATCH 01/14] slavio_misc: convert apc to memory API

2011-11-15 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/slavio_misc.c | 32 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/hw/slavio_misc.c b/hw/slavio_misc.c index 1f5a2d7..7d427f7 100644 --- a/hw/slavio_misc.c +++ b/hw/slavio_misc.c @@ -48,6 +48,7 @@ typedef stru

[Qemu-devel] [PATCH 03/14] slavio_misc: convert diagnostic to memory API

2011-11-15 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/slavio_misc.c | 31 +++ 1 files changed, 15 insertions(+), 16 deletions(-) diff --git a/hw/slavio_misc.c b/hw/slavio_misc.c index 7b98f11..60a115d 100644 --- a/hw/slavio_misc.c +++ b/hw/slavio_misc.c @@ -37,6 +37,7 @@ typedef stru

[Qemu-devel] [PATCH 07/14] slavio_misc: convert aux1 to memory API

2011-11-15 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/slavio_misc.c | 31 +++ 1 files changed, 15 insertions(+), 16 deletions(-) diff --git a/hw/slavio_misc.c b/hw/slavio_misc.c index 29eca9b..7a51e1b 100644 --- a/hw/slavio_misc.c +++ b/hw/slavio_misc.c @@ -41,6 +41,7 @@ typedef struc

[Qemu-devel] [PATCH 06/14] slavio_misc: convert system control to memory API

2011-11-15 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/slavio_misc.c | 31 +++ 1 files changed, 15 insertions(+), 16 deletions(-) diff --git a/hw/slavio_misc.c b/hw/slavio_misc.c index db266ba..29eca9b 100644 --- a/hw/slavio_misc.c +++ b/hw/slavio_misc.c @@ -40,6 +40,7 @@ typedef struc

[Qemu-devel] [PATCH 11/14] sun4c_intctl: convert to memory API

2011-11-15 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/sun4c_intctl.c | 32 +++- 1 files changed, 15 insertions(+), 17 deletions(-) diff --git a/hw/sun4c_intctl.c b/hw/sun4c_intctl.c index 5c7fdef..4d01d1c 100644 --- a/hw/sun4c_intctl.c +++ b/hw/sun4c_intctl.c @@ -46,6 +46,7 @@ type

Re: [Qemu-devel] [PATCH] Fixing some spelling in docs/libcacard.txt

2011-11-15 Thread Alon Levy
On Tue, Nov 15, 2011 at 11:57:14AM +, matthias@googlemail.com wrote: > From: Matthias Brugger > Thanks! Reviewed-by: Alon Levy > > Signed-off-by: Matthias Brugger > --- > docs/libcacard.txt | 12 ++-- > 1 files changed, 6 insertions(+), 6 deletions(-) > > diff --git a/do

Re: [Qemu-devel] [PATCH v7 1.0] configure: build position independent executables on x86 hosts

2011-11-15 Thread Peter Maydell
On 15 November 2011 09:34, Avi Kivity wrote: > Change the default on x86 hosts to building PIE (position independent > executables); instead of restricting the option to user-only targets, > apply it to all targets. > > In addition, set the relocation sections to read-only (relro) when available;

[Qemu-devel] [PATCH 13/14] sun4m_iommu: convert to memory API

2011-11-15 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/sun4m_iommu.c | 31 +++ 1 files changed, 15 insertions(+), 16 deletions(-) diff --git a/hw/sun4m_iommu.c b/hw/sun4m_iommu.c index 6eeadfa..86d135a 100644 --- a/hw/sun4m_iommu.c +++ b/hw/sun4m_iommu.c @@ -128,13 +128,15 @@ typede

[Qemu-devel] [PATCH 00/14] Convert Sun devices to memory API.

2011-11-15 Thread Benoît Canet
.valid was used where the access size is specified like in http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR89C105.txt .impl was used when the behavior is not known. Benoît Canet (14): slavio_misc: convert apc to memory API slavio_misc: convert configuration to memory API s

[Qemu-devel] [PATCH V2 00/12] Proxy FS driver for VirtFS

2011-11-15 Thread M. Mohan Kumar
Pass-through security model in QEMU 9p server needs root privilege to do few file operations (like chown, chmod to any mode/uid:gid). There are two issues in pass-through security model 1) TOCTTOU vulnerability: Following symbolic links in the server could provide access to files beyond 9p export

[Qemu-devel] [PATCH V2 07/12] hw/9pfs: File ownership and others

2011-11-15 Thread M. Mohan Kumar
Add file ownership interfaces like chmod/chown, utime update, rename, remove and truncating files for proxy FS Signed-off-by: M. Mohan Kumar --- Makefile|2 +- fsdev/virtfs-proxy-helper.c | 66 + hw/9pfs/virtio-9p-proxy.c | 134 +++

[Qemu-devel] [PATCH V2 05/12] hw/9pfs: Create other filesystem objects

2011-11-15 Thread M. Mohan Kumar
Add interfaces to create filesystem objects like directory, device nodes, symbolic links, links for proxy filesytem driver Signed-off-by: M. Mohan Kumar --- fsdev/virtfs-proxy-helper.c | 105 -- hw/9pfs/virtio-9p-proxy.c | 173 +++--

[Qemu-devel] [PATCH V2 06/12] hw/9pfs: Add stat/readlink/statfs for proxy FS

2011-11-15 Thread M. Mohan Kumar
Signed-off-by: M. Mohan Kumar --- fsdev/virtfs-proxy-helper.c | 165 hw/9pfs/virtio-9p-proxy.c | 174 +-- hw/9pfs/virtio-9p-proxy.h | 34 + 3 files changed, 367 insertions(+), 6 deletions(-) diff --g

[Qemu-devel] [PATCH V2 02/12] hw/9pfs: Add new proxy filesystem driver

2011-11-15 Thread M. Mohan Kumar
Add new proxy filesystem driver to add root privilege to qemu process. It needs a helper process to be started by root user. Following command line can be used to utilize proxy filesystem driver -virtfs proxy,id=,mount_tag=,socket_fd= Signed-off-by: M. Mohan Kumar --- Makefile.objs

[Qemu-devel] [PATCH V2 12/12] hw/9pfs: Add support to use named socket for proxy FS

2011-11-15 Thread M. Mohan Kumar
Add option to use named socket for communicating between proxy helper and qemu proxy FS. Access to socket can be given by using command line options -u and -g. We can achive the same using a shell script over qemu and virtfs-proxy-helper using exec fd<>, and then passing that fd as argument to qemu

[Qemu-devel] [PATCH V2 10/12] hw/9pfs: Documentation changes related to proxy fs

2011-11-15 Thread M. Mohan Kumar
Signed-off-by: M. Mohan Kumar --- qemu-options.hx | 25 - 1 files changed, 16 insertions(+), 9 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index 681eaf1..cde17ed 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -530,19 +530,19 @@ DEFHEADING() DEFHE

[Qemu-devel] [PATCH 08/14] slavio_misc: convert aux2 to memory API

2011-11-15 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/slavio_misc.c | 32 +++- 1 files changed, 15 insertions(+), 17 deletions(-) diff --git a/hw/slavio_misc.c b/hw/slavio_misc.c index 7a51e1b..ccc1c53 100644 --- a/hw/slavio_misc.c +++ b/hw/slavio_misc.c @@ -42,6 +42,7 @@ typedef stru

[Qemu-devel] [PATCH V2 01/12] hw/9pfs: Move pdu_marshal/unmarshal code to a seperate file

2011-11-15 Thread M. Mohan Kumar
Move p9 marshaling/unmarshaling code to a separate file so that proxy filesytem driver can use these calls. Also made marshaling code generic to accept "struct iovec" instead of V9fsPDU. Signed-off-by: M. Mohan Kumar --- Makefile.objs |2 +- fsdev/virtio-9p-marshal.c | 338 +

Re: [Qemu-devel] [PATCH V2 00/12] Proxy FS driver for VirtFS

2011-11-15 Thread M. Mohan Kumar
Changes from previous version: 1) Communication between qemu and helper process is similar to 9p way of packing elements (pdu marshaling). M. Mohan Kumar wrote: Pass-through security model in QEMU 9p server needs root privilege to do few file operations (like chown, chmod to any mode/uid:gid)

Re: [Qemu-devel] [PATCH v2] qcow2: Unlock during COW

2011-11-15 Thread Stefan Hajnoczi
On Mon, Nov 14, 2011 at 06:55:18PM +0100, Kevin Wolf wrote: > Unlocking during COW allows for more parallelism. One change it requires is > that buffers are dynamically allocated instead of just using a per-image > buffer. > > While touching the code, drop the synchronous qcow2_read() function and

[Qemu-devel] [PATCH V2 11/12] hw/9pfs: man page for proxy helper

2011-11-15 Thread M. Mohan Kumar
Signed-off-by: M. Mohan Kumar --- Makefile | 12 +++- fsdev/virtfs-proxy-helper.texi | 59 2 files changed, 70 insertions(+), 1 deletions(-) create mode 100644 fsdev/virtfs-proxy-helper.texi diff --git a/Makefile b/Makefile

[Qemu-devel] [PATCH 00/12] Proxy FS driver for VirtFS

2011-11-15 Thread M. Mohan Kumar
Pass-through security model in QEMU 9p server needs root privilege to do few file operations (like chown, chmod to any mode/uid:gid). There are two issues in pass-through security model 1) TOCTTOU vulnerability: Following symbolic links in the server could provide access to files beyond 9p export

Re: [Qemu-devel] [PATCH] virtio-blk: fix cross-endian config space

2011-11-15 Thread Stefan Hajnoczi
On Tue, Nov 15, 2011 at 12:07:53PM +0100, Paolo Bonzini wrote: > Signed-off-by: Paolo Bonzini > --- > hw/virtio-blk.c |6 +++--- > 1 files changed, 3 insertions(+), 3 deletions(-) Works with existing x86 guests and does the right thing for big-endian guests. Reviewed-by: Stefan Hajnoczi

[Qemu-devel] [PATCH V2 08/12] hw/9pfs: xattr interfaces in proxy filesystem driver

2011-11-15 Thread M. Mohan Kumar
Add xattr support for proxy FS Signed-off-by: M. Mohan Kumar --- fsdev/virtfs-proxy-helper.c | 78 - hw/9pfs/virtio-9p-proxy.c | 119 +++ hw/9pfs/virtio-9p-proxy.h |4 ++ 3 files changed, 190 insertions(+), 11 deletio

Re: [Qemu-devel] [PATCH 00/14] Convert Sun devices to memory API.

2011-11-15 Thread Avi Kivity
On 11/15/2011 01:13 PM, Benoît Canet wrote: > .valid was used where the access size is specified like in > http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR89C105.txt > .impl was used when the behavior is not known. Thanks, all applied except: > sun4c_intctl: convert to memory

[Qemu-devel] [PATCH V2 09/12] hw/9pfs: Proxy getversion

2011-11-15 Thread M. Mohan Kumar
Add proxy getversion to get generation number Signed-off-by: M. Mohan Kumar --- fsdev/virtfs-proxy-helper.c | 74 +++ hw/9pfs/virtio-9p-proxy.c | 31 ++ hw/9pfs/virtio-9p-proxy.h |1 + 3 files changed, 106 insertions(+), 0 delet

[Qemu-devel] [PATCH 10/14] slavio_intctl: convert slaves interrupt controllers to memory API

2011-11-15 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/slavio_intctl.c | 36 ++-- 1 files changed, 18 insertions(+), 18 deletions(-) diff --git a/hw/slavio_intctl.c b/hw/slavio_intctl.c index 0bc2a0b..e7812ed 100644 --- a/hw/slavio_intctl.c +++ b/hw/slavio_intctl.c @@ -46,6 +46,7 @

[Qemu-devel] [PATCH 09/14] slavio_intctl: convert master interrupt controller to memory API

2011-11-15 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/slavio_intctl.c | 31 +++ 1 files changed, 15 insertions(+), 16 deletions(-) diff --git a/hw/slavio_intctl.c b/hw/slavio_intctl.c index 329c251..0bc2a0b 100644 --- a/hw/slavio_intctl.c +++ b/hw/slavio_intctl.c @@ -54,6 +54,7 @@ typ

[Qemu-devel] [PATCH 04/14] slavio_misc: convert modem to memory API

2011-11-15 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/slavio_misc.c | 31 +++ 1 files changed, 15 insertions(+), 16 deletions(-) diff --git a/hw/slavio_misc.c b/hw/slavio_misc.c index 60a115d..9110c64 100644 --- a/hw/slavio_misc.c +++ b/hw/slavio_misc.c @@ -38,6 +38,7 @@ typedef struc

[Qemu-devel] [PATCH 14/14] esp: Fix memory API conversion

2011-11-15 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/esp.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/esp.c b/hw/esp.c index 2f23df9..9ab41ba 100644 --- a/hw/esp.c +++ b/hw/esp.c @@ -745,6 +745,7 @@ static int esp_init1(SysBusDevice *dev) memory_region_init_io(&s->iomem, &es

[Qemu-devel] [PATCH V2 04/12] hw/9pfs: Open and create files

2011-11-15 Thread M. Mohan Kumar
Add interfaces to open and create files for proxy file system driver. Signed-off-by: M. Mohan Kumar --- fsdev/virtfs-proxy-helper.c | 136 +++- hw/9pfs/virtio-9p-proxy.c | 180 +-- hw/9pfs/virtio-9p-proxy.h |9 ++ 3 fi

[Qemu-devel] [PATCH 05/14] slavio_misc: convert leds to memory API

2011-11-15 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/slavio_misc.c | 31 +++ 1 files changed, 15 insertions(+), 16 deletions(-) diff --git a/hw/slavio_misc.c b/hw/slavio_misc.c index 9110c64..db266ba 100644 --- a/hw/slavio_misc.c +++ b/hw/slavio_misc.c @@ -39,6 +39,7 @@ typedef struc

[Qemu-devel] [PATCH 02/14] slavio_misc: convert configuration to memory API

2011-11-15 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/slavio_misc.c | 31 +++ 1 files changed, 15 insertions(+), 16 deletions(-) diff --git a/hw/slavio_misc.c b/hw/slavio_misc.c index 7d427f7..7b98f11 100644 --- a/hw/slavio_misc.c +++ b/hw/slavio_misc.c @@ -36,6 +36,7 @@ typedef st

[Qemu-devel] [PATCH V2 03/12] hw/9pfs: File system helper process for qemu 9p proxy FS

2011-11-15 Thread M. Mohan Kumar
Provide root privilege access to QEMU 9p proxy filesystem using socket communication. Proxy helper is started by root user as: ~ # virtfs-proxy-helper -f|--fd -p|--path Signed-off-by: M. Mohan Kumar --- Makefile|3 + configure | 19 +++ fsdev/virtfs

[Qemu-devel] [PATCH 12/14] slavio_timer: convert to memory API

2011-11-15 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/slavio_timer.c | 41 - 1 files changed, 20 insertions(+), 21 deletions(-) diff --git a/hw/slavio_timer.c b/hw/slavio_timer.c index 84449ba..c23f990 100644 --- a/hw/slavio_timer.c +++ b/hw/slavio_timer.c @@ -61,6 +61,7 @

[Qemu-devel] [PATCH v3 6/6] LICENSE: There is no libqemu.a anymore

2011-11-15 Thread 陳韋任
From: Chen Wei-Ren Remove statement about libqemu.a from LICENSE. Signed-off-by: Chen Wei-Ren --- LICENSE |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/LICENSE b/LICENSE index cbd92c0..acae9a3 100644 --- a/LICENSE +++ b/LICENSE @@ -6,9 +6,7 @@ The following poin

[Qemu-devel] [PATCH v3 5/6] Makefile.objs: Remove libqemu_common.a from the comment

2011-11-15 Thread 陳韋任
From: Chen Wei-Ren Remove libqemu_common.a from the comment. Signed-off-by: Chen Wei-Ren --- Makefile.objs |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile.objs b/Makefile.objs index d7a6539..64c5c24 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -68

[Qemu-devel] [PATCH v3 1/6] tests/Makefile: Remove qruncom target

2011-11-15 Thread 陳韋任
From: Chen Wei-Ren Remove qruncom target from the Makefile file. Signed-off-by: Chen Wei-Ren --- tests/Makefile |6 -- 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index 430e0c1..15e36a2 100644 --- a/tests/Makefile +++ b/tests/Makefil

[Qemu-devel] [PATCH v3 4/6] Makefile.target: Remove out of date comment

2011-11-15 Thread 陳韋任
From: Chen Wei-Ren Remove the out of date comment, i.e., "# libqemu" since libqemu.a is not available anymore. Signed-off-by: Chen Wei-Ren --- v3: - Only remove out-of-date comment about libqemu.a from Makefile.target, leave manually inserted dependencie alone. Makefile.target |2 --

[Qemu-devel] [PATCH v3 3/6] qemu-tech.texi: Remove libqemu related stuff from the document

2011-11-15 Thread 陳韋任
From: Chen Wei-Ren Remove libqemu related stuff from the document since libqemu.a is not supported anymore. Signed-off-by: Chen Wei-Ren --- qemu-tech.texi | 10 -- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/qemu-tech.texi b/qemu-tech.texi index 62afe45..5676fb

[Qemu-devel] [PATCH v3 2/6] tests/qruncom.c: Remove libqemu.a example

2011-11-15 Thread 陳韋任
From: Chen Wei-Ren Remove libqemu example since libqemu.a is not available anymore. Signed-off-by: Chen Wei-Ren --- tests/qruncom.c | 284 --- 1 files changed, 0 insertions(+), 284 deletions(-) delete mode 100644 tests/qruncom.c diff --g

[Qemu-devel] [PATCH v3 0/6] Remove libqemu related stuff from QEMU source tree

2011-11-15 Thread 陳韋任
From: Chen Wei-Ren According to [1], libqemu is not available anymore. Remove libqemu related stuff from QEMU source tree. [1] http://www.mail-archive.com/address@hidden/msg49809.html v2: - Remove entry "qruncom.c" from "3 Regression Tests" in qemu-tech.texi. - Undo the deletion of common-o

Re: [Qemu-devel] [PATCH] migration: add a MAINTAINERS entry for migration

2011-11-15 Thread Avi Kivity
On 11/15/2011 10:32 AM, Stefan Hajnoczi wrote: > It would help to have a migration wiki page or document that explains > the implications of migration on QEMU code - what to look out for in > device emulation code. > > Although regular QEMU contributors may know the background on > migration/save/l

Re: [Qemu-devel] Windows 7 shutdown causes BSOD

2011-11-15 Thread Stefan Hajnoczi
On Fri, Nov 4, 2011 at 11:25 AM, Stefan Hajnoczi wrote: > On Fri, Nov 4, 2011 at 10:48 AM, Stefan Hajnoczi wrote: >> Windows 7 32-bit guest blue screens when I shut it down properly with >> Start | Shut Down.  The blue screen is only displayed for a split >> second before the guest reboots so I a

Re: [Qemu-devel] qemu and qemu.git -> Migration + disk stress introduces qcow2 corruptions

2011-11-15 Thread Juan Quintela
Anthony Liguori wrote: > On 11/14/2011 04:16 AM, Daniel P. Berrange wrote: >> On Sat, Nov 12, 2011 at 12:25:34PM +0200, Avi Kivity wrote: >>> On 11/11/2011 12:15 PM, Kevin Wolf wrote: Am 10.11.2011 22:30, schrieb Anthony Liguori: > Live migration with qcow2 or any other image format is ju

Re: [Qemu-devel] qemu and qemu.git -> Migration + disk stress introduces qcow2 corruptions

2011-11-15 Thread Avi Kivity
On 11/14/2011 11:58 AM, Kevin Wolf wrote: > Am 12.11.2011 11:25, schrieb Avi Kivity: > > On 11/11/2011 12:15 PM, Kevin Wolf wrote: > >> Am 10.11.2011 22:30, schrieb Anthony Liguori: > >>> Live migration with qcow2 or any other image format is just not going to > >>> work > >>> right now even with

[Qemu-devel] [PATCH 1.0] scsi: fix fw path

2011-11-15 Thread Paolo Bonzini
The pre-1.0 firmware path for SCSI devices already included the LUN using the suffix argument to add_boot_device_path. Avoid that it is included twice, and convert the colons to commas for consistency with other kinds of devices Signed-off-by: Paolo Bonzini --- hw/scsi-bus.c |2 +- 1 files

Re: [Qemu-devel] Summary of Anthony's 'next' queue

2011-11-15 Thread Anthony Liguori
On 11/14/2011 09:34 PM, Stefan Berger wrote: On 11/14/2011 03:17 PM, Anthony Liguori wrote: Hi, This is a summary of the patches that I have queued in my next tree that were identified as 1.1 candidates. These patches will not be applied until after the 1.1 tree opens (December 1st). These pat

Re: [Qemu-devel] [PATCH 0/5] docs: convert specifications to markdown

2011-11-15 Thread Anthony Liguori
On 11/15/2011 02:28 AM, Avi Kivity wrote: On 11/15/2011 12:41 AM, Anthony Liguori wrote: Right now our specs are written in psuedo-wiki syntax. This series converts them to markdown. markdown is a simple markup format that's gaining in popularity. The big advantage of using markdown is that t

Re: [Qemu-devel] [PATCH] migration: add a MAINTAINERS entry for migration

2011-11-15 Thread Anthony Liguori
On 11/15/2011 02:32 AM, Stefan Hajnoczi wrote: On Mon, Nov 14, 2011 at 03:08:25PM -0600, Anthony Liguori wrote: On 11/14/2011 11:40 AM, Juan Quintela wrote: Anthony Liguori wrote: I think this is an accurate reflection of the state of migration today. This is the second release in a row whe

Re: [Qemu-devel] [PATCH] migration: add a MAINTAINERS entry for migration

2011-11-15 Thread Anthony Liguori
On 11/15/2011 03:36 AM, Kevin Wolf wrote: Am 14.11.2011 22:08, schrieb Anthony Liguori: On 11/14/2011 11:40 AM, Juan Quintela wrote: Anthony Liguori wrote: I think this is an accurate reflection of the state of migration today. This is the second release in a row where we're scrambling to f

Re: [Qemu-devel] [PATCH 0/5] docs: convert specifications to markdown

2011-11-15 Thread Avi Kivity
On 11/15/2011 03:44 PM, Anthony Liguori wrote: > On 11/15/2011 02:28 AM, Avi Kivity wrote: >> On 11/15/2011 12:41 AM, Anthony Liguori wrote: >>> Right now our specs are written in psuedo-wiki syntax. This series >>> converts >>> them to markdown. markdown is a simple markup format that's gaining

Re: [Qemu-devel] qemu and qemu.git -> Migration + disk stress introduces qcow2 corruptions

2011-11-15 Thread Anthony Liguori
On 11/15/2011 07:20 AM, Juan Quintela wrote: Again, I think defaulting DAS to cache=none|directsync is what makes the most sense here. I think it is the only sane solution. Otherwise, we need to write the equivalent of a lock manager, to know _who_ has the storage, and distributed lock manager

Re: [Qemu-devel] [PATCH 0/5] docs: convert specifications to markdown

2011-11-15 Thread Alex Bradbury
On 15 November 2011 13:51, Avi Kivity wrote: > Does markdown support rendering into man pages? You can do this via pandoc: http://johnmacfarlane.net/pandoc/ Alex

Re: [Qemu-devel] [PATCH V2 03/12] hw/9pfs: File system helper process for qemu 9p proxy FS

2011-11-15 Thread Stefan Hajnoczi
On Tue, Nov 15, 2011 at 11:57 AM, M. Mohan Kumar wrote: > diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c > new file mode 100644 > index 000..69daf7c > --- /dev/null > +++ b/fsdev/virtfs-proxy-helper.c > @@ -0,0 +1,271 @@ > +/* > + * Helper for QEMU Proxy FS Driver > + *

Re: [Qemu-devel] endless loop when use qemu-system-mipsel to load bios

2011-11-15 Thread Markus Armbruster
rui chen writes: > Hi all, > When I try to use command line "qemu-system-mipsel -M malta -L . > -nographic" to run redboot, it will have an endless loop, then I find this > bug, here is my patch: > > > Author: Chen Rui > Date: Sat Nov 12 01:38:23 2011 +0800 > > resolve an endless loop

[Qemu-devel] [PATCH 0/4] prevent Qemu from waking up needlessly

2011-11-15 Thread Stefano Stabellini
Hi all, this small patch series prevents Qemu from waking up needlessly on Xen several times a second in order to check some timers. The first two patches stop Qemu from emulating the RTC and the PIT on Xen, that are both already emulated in the hypervisor and consume precious cpu cycles because t

[Qemu-devel] [PATCH 2/4] xen: do not initialize the interval timer emulator

2011-11-15 Thread stefano.stabellini
From: Stefano Stabellini PIT is emulated by the hypervisor so we don't need to emulate it in Qemu: this patch prevents Qemu from waking up needlessly at PIT_FREQ on Xen. Signed-off-by: Stefano Stabellini --- hw/pc.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a

[Qemu-devel] [PATCH 4/4] qemu_calculate_timeout: increase minimum timeout to 1h

2011-11-15 Thread stefano.stabellini
From: Stefano Stabellini There is no reason why the minimum timeout should be 1sec, it could easily be 1h and we would safe lots of cpu cycles. Signed-off-by: Stefano Stabellini --- qemu-timer.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/qemu-timer.c b/qemu-timer

[Qemu-devel] [PATCH 1/4] xen: introduce mc146818rtcxen

2011-11-15 Thread stefano.stabellini
From: Stefano Stabellini Xen doesn't need full RTC emulation in Qemu because the RTC is already emulated by the hypervisor. In particular we want to avoid the timers initialization so that Qemu doesn't need to wake up needlessly. Signed-off-by: Stefano Stabellini --- hw/mc146818rtc.c | 36 ++

Re: [Qemu-devel] [PATCH 0/5] docs: convert specifications to markdown

2011-11-15 Thread Anthony Liguori
On 11/15/2011 07:51 AM, Avi Kivity wrote: On 11/15/2011 03:44 PM, Anthony Liguori wrote: Nice. Suggest you enable rename detection, to make patches like these easier to read (not that it truly matters in the particular case). I haven't figured out yet how to make this sane to merge, but I've

[Qemu-devel] [PATCH 3/4] xen: introduce an event channel for buffered io event notifications

2011-11-15 Thread stefano.stabellini
From: Stefano Stabellini Use the newly introduced HVM_PARAM_BUFIOREQ_EVTCHN to receive notifications for buffered io events. After the first notification is received leave the event channel masked and setup a timer to process the rest of the batch. Once we have completed processing the batch, unm

Re: [Qemu-devel] [PATCH 1/4] xen: introduce mc146818rtcxen

2011-11-15 Thread Anthony Liguori
On 11/15/2011 08:51 AM, stefano.stabell...@eu.citrix.com wrote: From: Stefano Stabellini Xen doesn't need full RTC emulation in Qemu because the RTC is already emulated by the hypervisor. In particular we want to avoid the timers initialization so that Qemu doesn't need to wake up needlessly. S

Re: [Qemu-devel] [PATCH v7 1.0] configure: build position independent executables on x86 hosts

2011-11-15 Thread Anthony Liguori
On 11/15/2011 05:25 AM, Peter Maydell wrote: On 15 November 2011 09:34, Avi Kivity wrote: Change the default on x86 hosts to building PIE (position independent executables); instead of restricting the option to user-only targets, apply it to all targets. In addition, set the relocation section

Re: [Qemu-devel] [PATCH] hw/omap_gpio: Fix infinite recursion when doing 8/16 bit reads

2011-11-15 Thread Anthony Liguori
On 11/07/2011 07:25 AM, Peter Maydell wrote: Fix a long-standing bug which meant that any attempt to do an 8 or 16 bit read from the OMAP GPIO module would cause qemu to crash due to an infinite recursion. Signed-off-by: Peter Maydell Applied. Thanks. Regards, Anthony Liguori --- This has

Re: [Qemu-devel] [RFC 1.0] pc_piix: set qxl revision to 2 for pc-0.14

2011-11-15 Thread Anthony Liguori
On 11/13/2011 07:27 AM, Alon Levy wrote: The default is still 3, and I didn't change older machine types. Signed-off-by: Alon Levy Applied. Thanks. Regards, Anthony Liguori --- Is there a better way then copy pasting this to the older pc types to get the revision == 2 for them as well?

Re: [Qemu-devel] [PATCH 00/14] Convert Sun devices to memory API.

2011-11-15 Thread Benoît Canet
When converting lines like : -cpu_register_physical_memory_offset(0x1f80, 0x1000, -sh7750_io_memory, 0x1f80); -cpu_register_physical_memory_offset(0xff80, 0x1000, -sh7750_io_memory, 0x1f80); I'

[Qemu-devel] [PATCH 1.0] scsi-disk: guess geometry

2011-11-15 Thread Paolo Bonzini
Old operating systems rely on correct geometry to convert from CHS addresses to LBA. Providing correct data is necessary for them to boot. Signed-off-by: Paolo Bonzini --- This fixes booting the FreeDOS image on bochs.sf.net with virtio-scsi. I haven't tested with LSI option ROM

Re: [Qemu-devel] KVM call agenda for November 15th

2011-11-15 Thread Anthony Liguori
On 11/14/2011 11:44 AM, Juan Quintela wrote: Hi Please send in any agenda items you are interested in covering. Proposal: - Migration debacle. Just to capture my action items so I don't forget: 1) write up a markdown document for qemu.git that describes the past, current, and future state

[Qemu-devel] [PATCH 1.0 v2] scsi: fix fw path

2011-11-15 Thread Paolo Bonzini
The pre-1.0 firmware path for SCSI devices already included the LUN using the suffix argument to add_boot_device_path. I missed that when making channel and LUN customizable. Avoid that it is included twice, and convert the colons to commas for consistency with other kinds of devices Signed-off-

Re: [Qemu-devel] [PATCH 1/4] xen: introduce mc146818rtcxen

2011-11-15 Thread Stefano Stabellini
On Tue, 15 Nov 2011, Anthony Liguori wrote: > On 11/15/2011 08:51 AM, stefano.stabell...@eu.citrix.com wrote: > > From: Stefano Stabellini > > > > Xen doesn't need full RTC emulation in Qemu because the RTC is already > > emulated by the hypervisor. In particular we want to avoid the timers > > ini

[Qemu-devel] [RFC PATCH 0/4] virtio-scsi device model

2011-11-15 Thread Paolo Bonzini
Here is the first sneak peek of virtio-scsi. It's on top of my scsi-sg branch at http://github.com/bonzini/qemu. I'm more interested in getting early reviews in the virtio side, so I'm omitting the scsi-specific patches that introduce support for scatter/gather I/O in the SCSI layer. What's miss

Re: [Qemu-devel] [Xen-devel] [PATCH 3/4] xen: introduce an event channel for buffered io event notifications

2011-11-15 Thread Ian Campbell
On Tue, 2011-11-15 at 14:51 +, stefano.stabell...@eu.citrix.com wrote: > From: Stefano Stabellini > > Use the newly introduced HVM_PARAM_BUFIOREQ_EVTCHN to receive > notifications for buffered io events. > After the first notification is received leave the event channel masked > and setup a t

Re: [Qemu-devel] [Xen-devel] [PATCH 3/4] xen: introduce an event channel for buffered io event notifications

2011-11-15 Thread Stefano Stabellini
On Tue, 15 Nov 2011, Ian Campbell wrote: > > +xc_get_hvm_param(xen_xc, xen_domid, HVM_PARAM_BUFIOREQ_EVTCHN, > > +&bufioreq_evtchn); > > +rc = xc_evtchn_bind_interdomain(state->xce_handle, xen_domid, > > +(uint32_t)bufioreq_evtchn); > > +if (rc == -1) { > > +

[Qemu-devel] [PATCH 1/4] virtio-scsi: Add virtio-scsi stub device

2011-11-15 Thread Paolo Bonzini
From: Stefan Hajnoczi Add a useless virtio SCSI HBA device: qemu -device virtio-scsi-pci Signed-off-by: Stefan Hajnoczi Signed-off-by: Paolo Bonzini --- Makefile.target |1 + default-configs/pci.mak |1 + hw/pci.h|1 + hw/virtio-pci.c | 42

[Qemu-devel] [PATCH 3/4] virtio-scsi: add basic SCSI bus operation

2011-11-15 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/virtio-scsi.c | 99 -- 1 files changed, 88 insertions(+), 11 deletions(-) diff --git a/hw/virtio-scsi.c b/hw/virtio-scsi.c index 7e6348a..5fc3c00 100644 --- a/hw/virtio-scsi.c +++ b/hw/virtio-scsi.c @@ -119

[Qemu-devel] [PATCH 2/4] virtio-scsi: Add basic request processing infrastructure

2011-11-15 Thread Paolo Bonzini
From: Stefan Hajnoczi Signed-off-by: Stefan Hajnoczi Signed-off-by: Paolo Bonzini --- hw/virtio-scsi.c | 138 +- 1 files changed, 136 insertions(+), 2 deletions(-) diff --git a/hw/virtio-scsi.c b/hw/virtio-scsi.c index ff86376..7e6348a 1006

[Qemu-devel] converging around a single guest agent

2011-11-15 Thread Barak Azulay
Hi, One of the breakout sessions during the ovirt workshop [1] was about the guest tools, and focused mainly on the ovirt-guest-agent [2]. One of the issues discussed there, was the various existing guest agents out there, and the need to converge the efforts to a single agent that will serve

Re: [Qemu-devel] [PATCH 0/5] docs: convert specifications to markdown

2011-11-15 Thread Stefano Stabellini
On Tue, 15 Nov 2011, Alex Bradbury wrote: > On 15 November 2011 13:51, Avi Kivity wrote: > > Does markdown support rendering into man pages? > > You can do this via pandoc: > http://johnmacfarlane.net/pandoc/ Actually we are having the very same issue on xen right now: we have a manual written

Re: [Qemu-devel] [Xen-devel] [PATCH 3/4] xen: introduce an event channel for buffered io event notifications

2011-11-15 Thread Ian Campbell
On Tue, 2011-11-15 at 17:20 +, Stefano Stabellini wrote: > On Tue, 15 Nov 2011, Ian Campbell wrote: > > > +xc_get_hvm_param(xen_xc, xen_domid, HVM_PARAM_BUFIOREQ_EVTCHN, > > > +&bufioreq_evtchn); > > > +rc = xc_evtchn_bind_interdomain(state->xce_handle, xen_domid, > > > +

[Qemu-devel] [PATCH 4/4] virtio-scsi: process control queue requests

2011-11-15 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/virtio-scsi.c | 111 ++--- 1 files changed, 104 insertions(+), 7 deletions(-) diff --git a/hw/virtio-scsi.c b/hw/virtio-scsi.c index 5fc3c00..146ea6e 100644 --- a/hw/virtio-scsi.c +++ b/hw/virtio-scsi.c @@ -224,

Re: [Qemu-devel] converging around a single guest agent

2011-11-15 Thread Alon Levy
On Tue, Nov 15, 2011 at 07:24:40PM +0200, Barak Azulay wrote: > Hi, > > One of the breakout sessions during the ovirt workshop [1] was about the > guest > tools, and focused mainly on the ovirt-guest-agent [2]. > > One of the issues discussed there, was the various existing guest agents out >

[Qemu-devel] Sharing virtio-devices between several kvm virtual machines over network

2011-11-15 Thread Leib, David
Hi, I am trying to share devices between vm's. For example I want to use a cdrom-drive who is exposed to a vm from another vm over the network. In addition to this I want to use virtio for this idea. What I am trying to do step by step: 1. If virtqueue_pop is called on the KVM 2 I take the io

Re: [Qemu-devel] [PATCH 00/14] Convert Sun devices to memory API.

2011-11-15 Thread Avi Kivity
On 11/15/2011 05:22 PM, Benoît Canet wrote: > When converting lines like : > > -cpu_register_physical_memory_offset(0x1f80, 0x1000, > -sh7750_io_memory, 0x1f80); > -cpu_register_physical_memory_offset(0xff80, 0x1000, > -

Re: [Qemu-devel] [PATCH v7 1.0] configure: build position independent executables on x86 hosts

2011-11-15 Thread Avi Kivity
On 11/15/2011 04:57 PM, Anthony Liguori wrote: > On 11/15/2011 05:25 AM, Peter Maydell wrote: >> On 15 November 2011 09:34, Avi Kivity wrote: >>> Change the default on x86 hosts to building PIE (position independent >>> executables); instead of restricting the option to user-only targets, >>> appl

Re: [Qemu-devel] converging around a single guest agent

2011-11-15 Thread Perry Myers
On 11/15/2011 12:24 PM, Barak Azulay wrote: > Hi, > > One of the breakout sessions during the ovirt workshop [1] was about the > guest > tools, and focused mainly on the ovirt-guest-agent [2]. > > One of the issues discussed there, was the various existing guest agents out > there, and the ne

  1   2   >