[Qemu-devel] [PATCH] linux-user: add SIOCADDRT/SIOCDELRT support

2013-05-27 Thread Laurent Vivier
0 0 0 eth 10.0.3.00.0.0.0 255.255.255.0 U 0 0 0 eth Signed-off-by: Laurent Vivier laur...@vivier.eu --- linux-user/ioctls.h | 6 +++-- linux-user/syscall.c | 64 2 files changed, 68 insertions

Re: [Qemu-devel] [PATCH] linux-user: Allow getdents to be provided by getdents64

2013-06-03 Thread Laurent Vivier
Tested on m68k on x86_64 as described in the patch comment, in a a debian-etch linux container. Works fine, except the drec_len differs between getdents() and getdents64(). See comment below. Le 2 juin 2013 à 19:10, Peter Maydell peter.mayd...@linaro.org a écrit : Newer architectures may

Re: [Qemu-devel] [PATCH] linux-user: Allow getdents to be provided by getdents64

2013-06-03 Thread Laurent Vivier
I agree with all your comments. Tested-by: Laurent Vivier laur...@vivier.eu Reviewed-by: Laurent Vivier laur...@vivier.eu Le 3 juin 2013 à 13:28, Peter Maydell peter.mayd...@linaro.org a écrit : On 3 June 2013 12:11, Laurent Vivier laur...@vivier.eu wrote: Tested on m68k on x86_64

Re: [Qemu-devel] [PATCH] linux-user: add SIOCADDRT/SIOCDELRT support

2013-06-07 Thread Laurent Vivier
Ping Le 27/05/2013 20:48, Laurent Vivier a écrit : This allows to pass the device name. You can test this with the route command. WITHOUT this patch: $ sudo route add -net default gw 10.0.3.1 eth0 SIOCADDRT: Bad address $ netstat -nr Kernel IP routing table Destination Gateway

Re: [Qemu-devel] [PATCH] Update MAINTAINERS

2013-10-02 Thread Laurent Vivier
Le 02/10/2013 20:42, Rob Landley a écrit : On 10/02/2013 12:09:58 PM, Anthony Liguori wrote: All of Paul's emails are bouncing and he hasn't been active for some time. ... M68K -M: Paul Brook p...@codesourcery.com -S: Odd Fixes +S: Orphan F: target-m68k/ F: hw/m68k/ Laurent Vivier has

Re: [Qemu-devel] [PATCH] linux-user: Implement sendmmsg syscall

2013-09-05 Thread Laurent Vivier
Le 5 septembre 2013 à 15:37, Alexander Graf ag...@suse.de a écrit : Glibc when built for newer kernels assumes that the sendmmsg syscall is available. Without it, dns resolution simply fails to work. Wrap the syscall with existing infrastructure so that we don't have a host dependency

Re: [Qemu-devel] [PATCH 6/6] scripts: create a template to use with lxc-create

2013-09-06 Thread Laurent Vivier
Le 06/09/2013 18:33, Peter Maydell a écrit : On 30 August 2013 00:46, Laurent Vivier laur...@vivier.eu wrote: Signed-off-by: Laurent Vivier laur...@vivier.eu --- scripts/lxc-cross-debian | 353 +++ 1 file changed, 353 insertions(+) create mode

Re: [Qemu-devel] [PATCH 5/6] linux-user: add support of binfmt_misc 'O' flag

2013-09-06 Thread Laurent Vivier
Le 06/09/2013 18:17, Peter Maydell a écrit : On 30 August 2013 00:46, Laurent Vivier laur...@vivier.eu wrote: The binfmt_misc module can calculate the credentials and security token according to the binary instead of to the interpreter if the 'C' flag is enabled. To be able to execute non

[Qemu-devel] [PATCH 2/4] linux-user: specify the cpu model during configure

2013-09-06 Thread Laurent Vivier
From: Laurent Vivier laur...@vivier.eu This patch allows to set the default cpu model for a given architecture, for instance: configure --target-list=m68k-linux-user --m68k-default-cpu=m68040 Signed-off-by: Laurent Vivier laur...@vivier.eu --- configure | 9 + 1 file changed, 9

[Qemu-devel] [PATCH 4/4] linux-user,arm: display default cpu

2013-09-06 Thread Laurent Vivier
From: Laurent Vivier laur...@vivier.eu Signed-off-by: Laurent Vivier laur...@vivier.eu --- target-arm/helper.c | 5 + 1 file changed, 5 insertions(+) diff --git a/target-arm/helper.c b/target-arm/helper.c index e51ef20..26863d4 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c

[Qemu-devel] [PATCH 1/4] linux-user: define default cpu model in configure instead of linux-user/main.c

2013-09-06 Thread Laurent Vivier
From: Laurent Vivier laur...@vivier.eu Signed-off-by: Laurent Vivier laur...@vivier.eu --- configure | 14 ++ linux-user/main.c | 36 +--- 2 files changed, 15 insertions(+), 35 deletions(-) diff --git a/configure b/configure index e989609

[Qemu-devel] [PATCH 3/4] linux-user,m68k: display default cpu

2013-09-06 Thread Laurent Vivier
From: Laurent Vivier laur...@vivier.eu Signed-off-by: Laurent Vivier laur...@vivier.eu --- target-m68k/helper.c | 5 + 1 file changed, 5 insertions(+) diff --git a/target-m68k/helper.c b/target-m68k/helper.c index 00a7a08..123329a 100644 --- a/target-m68k/helper.c +++ b/target-m68k/helper.c

[Qemu-devel] [PATCH 0/4] Define default CPU at configure time

2013-09-06 Thread Laurent Vivier
are updated as examples : arm and m68k. Laurent Vivier (4): linux-user: define default cpu model in configure instead of linux-user/main.c linux-user: specify the cpu model during configure linux-user,m68k: display default cpu linux-user,arm: display default cpu configure

Re: [Qemu-devel] [PATCH 0/4] Define default CPU at configure time

2013-09-07 Thread Laurent Vivier
Le 07/09/2013 10:43, Peter Maydell a écrit : On 6 September 2013 21:47, Laurent Vivier laur...@vivier.eu wrote: This series of patch allows to set the default CPU used by linux-user qemu. When qemu is used in a container as a binfmt interpreter we can't use the environment variable QEMU_CPU

Re: [Qemu-devel] [PATCH 0/4] Define default CPU at configure time

2013-09-10 Thread Laurent Vivier
Le 9 septembre 2013 à 21:23, Richard Henderson r...@twiddle.net a écrit : On 09/07/2013 02:19 AM, Peter Maydell wrote: On 7 September 2013 10:13, Laurent Vivier laur...@vivier.eu wrote: Le 07/09/2013 10:43, Peter Maydell a écrit : In fact, I don't understand why a given CPU id has been

Re: [Qemu-devel] [PATCH 8/8] linux-user: Enable NPTL for m68k

2013-07-13 Thread Laurent Vivier
Le 12/07/2013 22:12, Peter Maydell a écrit : For m68k, per-thread data is a purely kernel construct with no CPU level support. Implement it via a field in the TaskState structure, used by cpu_set_tls() and the set_thread_area/get_thread_area syscalls. This allows us to enable compilation with

Re: [Qemu-devel] [PATCH v3 08/13] linux-user: Enable NPTL for m68k

2013-07-16 Thread Laurent Vivier
with NPTL. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Laurent Vivier laur...@vivier.eu

[Qemu-devel] target m68k

2005-10-07 Thread Laurent Vivier
Hi, I seek qemu with m68k target. I didn't find it in CVS. Is it available ? Cheers, Laurent signature.asc Description: Ceci est une partie de message numériquement signée. ___ Qemu-devel mailing list Qemu-devel@nongnu.org

Re: [Qemu-devel] Apple partition on ppc debian installer

2007-03-01 Thread Laurent Vivier
jerome Arbez-Gindre wrote: Hi, Hi, a nice subject for my first post on this list :-P I'm trying to install a ppc debian on a ppc-qemu, and when Partamn makes the patitionning, it shows me a Apple partition (32.3 kB) at the very beginning of the disk. I suppose that this partition contains

[Qemu-devel] QEMU/pc and scsi disks

2007-03-01 Thread Laurent Vivier
Hi, As I'm a newcomer, I don't know the story about qemu/pc and scsi disks, but I propose a little patch to make SCSI disks visible. Disks are not bootable, I think we should write a BIOS for that ? Regards, Laurent -- - [EMAIL PROTECTED] -- Any sufficiently

Re: [Qemu-devel] QEMU/pc and scsi disks

2007-03-02 Thread Laurent Vivier
Paul Brook wrote: On Thursday 01 March 2007 17:26, Laurent Vivier wrote: Hi, As I'm a newcomer, I don't know the story about qemu/pc and scsi disks, but I propose a little patch to make SCSI disks visible. See previous discussion about how the disk options need to be fixed properly

Re: [Qemu-devel] bdrv_flush for qemu block drivers nbd, rbd and sheepdog

2010-10-21 Thread Laurent Vivier
Le jeudi 21 octobre 2010 à 10:07 -0500, Anthony Liguori a écrit : On 10/21/2010 09:07 AM, Kevin Wolf wrote: Hi all, I'm currently looking into adding a return value to qemu's bdrv_flush function and I noticed that your block drivers (nbd, rbd and sheepdog) don't implement bdrv_flush at

[Qemu-devel] [PATCH] linux-user: correct core dump format

2011-01-11 Thread Laurent Vivier
0508 2**2 CONTENTS 4 load1 0004 2000 2**13 ALLOC, READONLY Signed-off-by: Laurent Vivier laur...@vivier.eu --- linux-user/elfload.c | 16 +--- 1 files changed, 9 insertions(+), 7 deletions(-) diff --git

Re: [Qemu-devel] RFC: mass comment conversion from C99 to C89

2011-01-15 Thread Laurent Vivier
Le samedi 15 janvier 2011 à 16:02 +, Blue Swirl a écrit : With the sed script below (my first I think), I'm able to convert most nice script. Did you try awk ? files in QEMU from C99 comment style to C89. When successive line with C99 comments are converted, the comments are merged. Two

RE: [Qemu-devel] Re: [PING 0.14] Missing patches (mostly fixes)

2011-02-03 Thread Laurent Vivier
On Wed, Feb 02, 2011 at 08:28:15PM +0100, Stefan Weil wrote: [PATCH] linux-user: Fix possible realloc memory leak (http://patchwork.ozlabs.org/patch/79217/) Looks ok for me. And this one ? linux-user: correct core dump format http://patchwork.ozlabs.org/patch/78464/ Laurent --

Re: [Qemu-devel] Re: [PING 0.14] Missing patches (mostly fixes)

2011-02-05 Thread Laurent Vivier
Hi, I've no need, just put it in your tree where you want... Regards, Laurent riku voipio riku.voi...@iki.fi a écrit : On 02/03/2011 12:16 PM, Laurent Vivier wrote: On Wed, Feb 02, 2011 at 08:28:15PM +0100, Stefan Weil wrote: [PATCH] linux-user: Fix possible realloc memory leak (http

Re: [Qemu-devel] Re: [PING 0.14] Missing patches (mostly fixes)

2011-02-09 Thread Laurent Vivier
On Sat, Feb 05, 2011 at 10:49:51PM +0100, Laurent Vivier wrote: On 02/03/2011 12:16 PM, Laurent Vivier wrote: And this one ? linux-user: correct core dump format http://patchwork.ozlabs.org/patch/78464/ Actually that patch is not ok. The issues you fix on m68k appear on arm/eabi after

Re: [Qemu-devel] Re: [PING 0.14] Missing patches (mostly fixes)

2011-02-09 Thread Laurent Vivier
On 9 February 2011 09:20, Laurent Vivier laur...@vivier.eu wrote: It is strange as we have in gdb, if I remember correctly, an explicit check of the size of prstatus: gdb/bfd/elf.c:    if defined (HAVE_PRSTATUS_T)    static bfd_boolean    elfcore_grok_prstatus (bfd *abfd

[Qemu-devel] [PATCH 2/2] linux-user: correct core dump format

2011-02-10 Thread Laurent Vivier
0508 2**2 CONTENTS 4 load1 0004 2000 2**13 ALLOC, READONLY Signed-off-by: Laurent Vivier laur...@vivier.eu --- linux-user/elfload.c | 16 +--- 1 files changed, 9 insertions(+), 7 deletions(-) diff --git

[Qemu-devel] [PATCH 0/2] correct core dump format

2011-02-10 Thread Laurent Vivier
This is the v2 of my patch correcting the core dump format. It introduces a new parameter of the target: the alignment size. For the moment, it seems m68k is the only one that doesn't have 32bit address alignment but 16bit one. [PATCH 1/2] Define target alignment size [PATCH 2/2] linux-user:

[Qemu-devel] [PATCH 1/2] Define target alignment size

2011-02-10 Thread Laurent Vivier
Signed-off-by: Laurent Vivier laur...@vivier.eu --- configure |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 2bf7f34..b71035b 100755 --- a/configure +++ b/configure @@ -2902,6 +2902,7 @@ target_nptl=no interp_prefix1=`echo $interp_prefix

Re: [Qemu-devel] RFC: Implement emulation of pSeries logical partitions

2011-02-12 Thread Laurent Vivier
Hi, Do you plan to boot AIX in one of these partitions ? Regards, Laurent David Gibson da...@gibson.dropbear.id.au a écrit : This patch series adds a pseries machine to qemu, allowing it to emulate IBM pSeries logical partitions. Along the way we add a bunch of support for more modern ppc

[Qemu-devel] [PATCH 2/2] linux-user: correct core dump format

2011-02-12 Thread Laurent Vivier
0508 2**2 CONTENTS 4 load1 0004 2000 2**13 ALLOC, READONLY Signed-off-by: Laurent Vivier laur...@vivier.eu --- v2: use a predefined alignment size for target_elf_prstatus v3: use target_type aligned according target

[Qemu-devel] [PATCH 1/2] linux-user: Define target alignment size

2011-02-12 Thread Laurent Vivier
for other targets, use by default (2,4,4,8). Please, update for your favorite target... Signed-off-by: Laurent Vivier laur...@vivier.eu --- v2: compute align size for each basic datatype configure | 13 + cpu-defs.h | 14 ++ 2 files changed, 23 insertions(+), 4

Re: [Qemu-devel] [PATCH 1/2] linux-user: Define target alignment size

2011-02-13 Thread Laurent Vivier
Le dimanche 13 février 2011 à 10:24 +0200, Blue Swirl a écrit : On Sun, Feb 13, 2011 at 4:22 AM, Laurent Vivier laur...@vivier.eu wrote: Datatype alignment can be found using following application: int main(void) { printf(alignof(short) %ld\n, __alignof__(short)); printf

[Qemu-devel] [PATCH 2/2][v3] linux-user: correct core dump format

2011-02-13 Thread Laurent Vivier
0508 2**2 CONTENTS 4 load1 0004 2000 2**13 ALLOC, READONLY Signed-off-by: Laurent Vivier laur...@vivier.eu --- v2: use a predefined alignment size for target_elf_prstatus v3: use target_type aligned according target

[Qemu-devel] [PATCH 1/2][v3] linux-user: Define target alignment size

2011-02-13 Thread Laurent Vivier
for other targets, use by default (2,4,4,8). Please, update for your favorite target... Signed-off-by: Laurent Vivier laur...@vivier.eu --- v2: compute align size for each basic datatype v3: add alignments for some 64bit targets, renanme long_long to llong configure | 17

[Qemu-devel] [PATCH 0/2][v4] correct core dump format

2011-02-13 Thread Laurent Vivier
This is the v4 of my patch correcting the core dump format. (3 versions for patch 2, 3 versions for patch 1 starting at version 2 of patch 2...) v4 adds some long alignments for 64bit targets, renames target_long_long to target_llong, and so on... v3 introduces a new parameter of the target:

[Qemu-devel] [PATCH 1/2] linux-user: add rmdir() strace

2011-02-15 Thread Laurent Vivier
Signed-off-by: Laurent Vivier laur...@vivier.eu --- linux-user/strace.c| 12 linux-user/strace.list |3 +++ 2 files changed, 15 insertions(+), 0 deletions(-) diff --git a/linux-user/strace.c b/linux-user/strace.c index 183..05277c0 100644 --- a/linux-user/strace.c

[Qemu-devel] [PATCH 2/2] linux-user: in linux-user/strace.c, tswap() is useless

2011-02-15 Thread Laurent Vivier
|O_LARGEFILE|O_NOCTTY|O_NONBLOCK|0x1) = 0 ... without tswap() ... 30572 open(/usr/share/locale/locale.alias,O_RDONLY) = 3 30572 fstat64(3,0x4080032c) = 0 ... 30572 open(mytouch,O_WRONLY|O_CREAT|O_LARGEFILE|O_NOCTTY|O_NONBLOCK,0666) = 0 Signed-off-by: Laurent Vivier laur...@vivier.eu --- linux-user

[Qemu-devel] [PATCH] Introduce NBD named exports.

2010-08-23 Thread Laurent Vivier
] exportname = /ISO/Fedora-10-ppc-netinst.iso You can connect to it, using: qemu -cdrom nbd:isoserver:exportname=debian-500-ppc-netinst qemu -cdrom nbd:isoserver:exportname=Fedora-10-ppc-netinst NOTE: you need at least nbd-server 2.9.18 Signed-off-by: Laurent Vivier laur...@vivier.eu --- block

Re: [Qemu-devel] [PATCH] Introduce NBD named exports.

2010-08-24 Thread Laurent Vivier
Le mardi 24 août 2010 à 10:59 +0200, Kevin Wolf a écrit : Am 24.08.2010 03:04, schrieb Laurent Vivier: This patch allows to connect Qemu using NBD protocol to an nbd-server using named exports. For instance, if on the host isoserver, in /etc/nbd-server/config, you have: [generic

[Qemu-devel] [PATCH][v2] Introduce NBD named exports.

2010-08-24 Thread Laurent Vivier
] exportname = /ISO/Fedora-10-ppc-netinst.iso You can connect to it, using: qemu -cdrom nbd:isoserver:exportname=debian-500-ppc-netinst qemu -cdrom nbd:isoserver:exportname=Fedora-10-ppc-netinst NOTE: you need at least nbd-server 2.9.18 Signed-off-by: Laurent Vivier laur...@vivier.eu --- v2

Re: [Qemu-devel] [PATCH] Introduce NBD named exports.

2010-08-25 Thread Laurent Vivier
Am 25.08.2010 00:21, schrieb Laurent Vivier: Le mardi 24 août 2010 à 10:59 +0200, Kevin Wolf a écrit : [...] Maybe using strlen(EN_OPTSTR) would be clearer? At first I missed the fact that sizeof includes the null byte, but maybe it's just me. I think sizeof() is resolved at compile time

[Qemu-devel] [PATCH][v3] Introduce NBD named exports.

2010-08-25 Thread Laurent Vivier
] exportname = /ISO/Fedora-10-ppc-netinst.iso You can connect to it, using: qemu -cdrom nbd:isoserver:exportname=debian-500-ppc-netinst qemu -cdrom nbd:isoserver:exportname=Fedora-10-ppc-netinst NOTE: you need at least nbd-server 2.9.18 Signed-off-by: Laurent Vivier laur...@vivier.eu --- v3

Re: [Qemu-devel] [PATCH][v3] Introduce NBD named exports.

2010-08-26 Thread Laurent Vivier
On 08/25/2010 03:48 PM, Laurent Vivier wrote: This patch allows to connect Qemu using NBD protocol to an nbd-server using named exports. Does using a named export make the NBD protocol incompatible with a server that doesn't support named exports? IOW, it's essentially a new protocol

[Qemu-devel] [PATCH] Improve qemu-nbd performance by 4400 %

2010-09-16 Thread Laurent Vivier
-by: Laurent Vivier laur...@vivier.eu --- nbd.c | 20 +++- 1 files changed, 15 insertions(+), 5 deletions(-) diff --git a/nbd.c b/nbd.c index 011b50f..5d7c758 100644 --- a/nbd.c +++ b/nbd.c @@ -655,7 +655,7 @@ int nbd_trip(BlockDriverState *bs, int csock, off_t size, uint64_t

Re: [Qemu-devel] [PATCH] Improve qemu-nbd performance by 4400 %

2010-09-17 Thread Laurent Vivier
Am 16.09.2010 20:54, schrieb Laurent Vivier: This patch allows to reduce the boot time from an NBD server from 225 seconds to 5 seconds (time between the boot cd:0 and the kernel init) for the following command lines: ./qemu-nbd -t ../ISO/debian-500-powerpc-netinst.iso and ./ppc-softmmu

[Qemu-devel] [PATCH][v2] Improve qemu-nbd performance by 4400 %

2010-09-17 Thread Laurent Vivier
combines the reply header and payload send operation. Signed-off-by: Laurent Vivier laur...@vivier.eu --- v2: use NBD_REPLY_SIZE instead of sizeof(struct nbd_reply) nbd.c | 25 ++--- 1 files changed, 18 insertions(+), 7 deletions(-) diff --git a/nbd.c b/nbd.c index 011b50f

[Qemu-devel] [PATCH] nbd: correctly manage default port

2010-09-17 Thread Laurent Vivier
block/nbd.c: use default port number when none is specified qemu-nbd.c: use IANA-assigned port number: 10809 Signed-off-by: Laurent Vivier laur...@vivier.eu --- block/nbd.c |2 -- qemu-nbd.c |6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/block/nbd.c b/block

[Qemu-devel] [PATCH] qemu-nbd: add statistics

2010-10-05 Thread Laurent Vivier
kB/s) 2221 io/s, 4443 R kB/s 0 W kB/s (2221 io/s, 4443 R kB/s, 0 W kB/s) 0 io/s, 0 R kB/s 0 W kB/s (2221 io/s, 4443 R kB/s, 0 W kB/s) 0 io/s, 0 R kB/s 0 W kB/s (2221 io/s, 4443 R kB/s, 0 W kB/s) ... Signed-off-by: Laurent Vivier laur...@vivier.eu --- nbd.c | 10 nbd.h |4

Re: [Qemu-devel] Inquiry about qemu for Motorola 68360

2010-05-23 Thread Laurent Vivier
Le dimanche 23 mai 2010 à 08:47 +0100, hadi motamedi a écrit : While QEMU does indeed works for x86 Windows, current QEMU's m68k architecture does not included that specific Motorola chip. Thank you for your reply. Can you please let me know which Motorola chips are

[Qemu-devel] [PATCH] linux-user: display cpu list.

2010-05-23 Thread Laurent Vivier
From: Laurent Vivier laur...@vivier.eu As it is done for qemu-system with -cpu ?, when cpu_list_id() is missing for a target, call cpu_list() instead. Signed-off-by: Laurent Vivier laur...@vivier.eu --- linux-user/main.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git

Re: [Qemu-devel] Re: [PATCH] Always swap endianness in DBDMA

2009-12-23 Thread Laurent Vivier
Le mercredi 23 décembre 2009 à 10:55 +, Paul Brook a écrit : The problem is that the whole define is just plain wrong which tells me that the code is using the bswap functions incorrectly. This really needs to be fixed by someone who knows the dbdma device. I don't see how calling

Re: [Qemu-devel] Re: [PATCH] Always swap endianness in DBDMA

2009-12-23 Thread Laurent Vivier
Le mercredi 23 décembre 2009 à 10:55 +, Paul Brook a écrit : [2] My guess is that the code is cribbed from elsewhere, and the original source gave the CPU direct access to the ch-regs[] array. In fact it comes from Mac-On-Linux, src/drivers/dbdma.c Laurent -- -

RE: [Qemu-devel] Planning for 0.13

2010-01-06 Thread Laurent Vivier
Hi, I hope everyone had a happy new year! Now that we've finished the 0.12 release and most of us have had a nice break, I think it's time to start planning for the next release. 0.12 felt a bit rushed to me. I'd like to take a bit more time with 0.13 and try to complete features a bit more

[Qemu-devel] [PATCH] Modify qemu-img to mount locally disk image using NBD (v2)

2008-03-10 Thread Laurent Vivier
This patch is a new version of qemu-img using NBD device to mount Qemu disk image. To not hang on UP system, it needs following patch: http://article.gmane.org/gmane.linux.drivers.nbd.general/42 If you want to use loop to see partitions, you need this patch:

RE: [Qemu-devel] qemu-0.11.50 build breaks at monitor.c

2009-10-19 Thread Laurent Vivier
Hi Marcelo, qemu-0.11.50 build breaks with CCx86_64-softmmu/monitor.o cc1: warnings being treated as errors /other/srcs/qemu-kvm/monitor.c: In function 'print_cpu_iter': /other/srcs/qemu-kvm/monitor.c:450: error: format '%ld' expects type 'long int', but argument 3 has type

Re: [Qemu-devel] [PATCH V2 2/3] usb-gotemp: new module emulating a USB thermometer

2009-11-10 Thread Laurent Vivier
+    s-temperature++; You're going to overheat very quickly. Apart from making the driver work, is this actually useful? I wanted the temperature to change with time to give a sense of something is happening ^_^ The main user I had in mind was someone new to USB and Linux driver development

Re: [Qemu-devel] ppc64 target broken

2009-11-11 Thread Laurent Vivier
qemu-system-ppc is also broken. A bisect gives me: c169998802505c244b8bcad562633f29de7d74a4 is first bad commit commit c169998802505c244b8bcad562633f29de7d74a4 Author: Glauber Costa glom...@redhat.com Date: Thu Nov 5 16:05:15 2009 -0200 v3: don't call reset functions on cpu initialization

[Qemu-devel] Re: [kvm-devel] Storing command line options in qcow2 images

2007-07-31 Thread Laurent Vivier
Jorge Lucángeli Obes wrote: [...] Laurent, do you want the patches for the functionality that's working right now? We can divide the (not very big amount of) work that's left. It consists basically on teaching qemu how to look for command line options, if none are present on the current

Re: [Qemu-devel] Using Microsoft-provided Windows images

2007-08-02 Thread Laurent Vivier
GUERRAZ Francois wrote: Hello. Yes but if I understood well, you can't boot on the SCSI device because of BIOS limitations right? So the problem remains ... :) Maybe if you install GRUB and tell him to boot on SCSI.. :) GRUB uses BIOS... Laurent -- - [EMAIL PROTECTED]

Re: [kvm-devel] [Qemu-devel] Re: Storing command line options in images

2007-08-13 Thread Laurent Vivier
Avi Kivity wrote: Jorge Lucángeli Obes wrote: My feeling is that config files are outdated. When used with a gui, you end up writing silly parsers and stuff and still wrecking things horribly when the the gui writer's expectations don't match reality. When used without a gui, they increase

Re: [kvm-devel] [Qemu-devel] Re: Storing command line options in images

2007-08-14 Thread Laurent Vivier
Thiemo Seufer wrote: Jorge Lucángeli Obes wrote: [snip] When I read Avi's TODO, I basically thought about getting rid of the long command lines I had to store in scripts. I wanted to write that command line once, and then forgetting about it, until I needed to change it. Instead of

[Qemu-devel] Réf. : Re: [kvm-devel] [PATCH][RFC] Allowing QEMU to directly executeadirectory (and storing command line options in it)

2007-08-31 Thread laurent . vivier
Hi Anthony, I think passing only the directory name is better because it can be like a black box : the user don't have to know how it is inside. And it is much more simple to use qemu my_pc than qemu -c my_pc/config. Regards, Laurent --

Réf. : Re: [Qemu-devel] Réf. : Re: [kvm -devel] [PATCH ][RFC] Allowing QEMU to directly executeadirectory (and storing command line options in it)

2007-08-31 Thread laurent . vivier
Hi, On Fri, 31 Aug 2007, [EMAIL PROTECTED] wrote: I think passing only the directory name is better because it can be like a black box : the user don't have to know how it is inside. I consider this a super downside. If you think your users are idiots, only idiots will use it [your

Re: [Qemu-devel] Re: Réf. : Re: [kvm-devel] [ PATCH][RFC] Allowing QEMU to directly executead irectory (and storing command line options in it)

2007-09-03 Thread Laurent Vivier
Anthony Liguori wrote: On Fri, 2007-08-31 at 22:13 +0200, [EMAIL PROTECTED] wrote: Hi Anthony, I think passing only the directory name is better because it can be like a black box : the user don't have to know how it is inside. And it is much more simple to use qemu my_pc than qemu -c

[Qemu-devel] Re: [kvm-devel] [ kvm-Bugs-1802223 ] nics have same hw address (rtl8139)

2007-09-26 Thread Laurent Vivier
Hi, I think there is a bug in qemu RTL8139. RTL8139 uses: cpu_register_physical_memory(addr + 0, 0x100, s-rtl8139_mmio_io_addr); But in the comment of cpu_register_physical_memory() we have: 'size' must be a multiple of the target page size. And I think 0x100 is not a multiple of target page

[Qemu-devel] Re: [kvm-devel] [ kvm-Bugs-1802223 ] nics have same hw address (rtl8139)

2007-09-26 Thread Laurent Vivier
Daniel P. Berrange wrote: On Wed, Sep 26, 2007 at 05:47:20PM +0200, Laurent Vivier wrote: Hi, I think there is a bug in qemu RTL8139. RTL8139 uses: cpu_register_physical_memory(addr + 0, 0x100, s-rtl8139_mmio_io_addr); But in the comment of cpu_register_physical_memory() we have: 'size

Re: [Qemu-devel] [Patch] set boot sequence from command line

2007-10-24 Thread Laurent Vivier
Dan Kenigsberg a écrit : Real PCs try to boot from a CD, then try the hard drive, and finally go to the network. And they let their owner change that order. This patch lets Qemu do the same with -boot dcn. I'll be happy to hear comments about it, Personally, I think it's a very good idea.

[Qemu-devel] [PATCH 0/3] Add SCSI support for PC target

2007-10-28 Thread Laurent . Vivier
Hi, I know this has already been tried, but I hope this time I have the good approach: this series of 3 patches introduces the support of SCSI devices for the PC target (and try to break nothing existing). [PATCH 1/3] Add args to -cdrom to define where is connected the cdrom This patch

[Qemu-devel] [PATCH 2/3] Add arg -disk to define new disk with more features

2007-10-28 Thread Laurent . Vivier
From: Laurent Vivier [EMAIL PROTECTED](none) As for -cdrom, this patch introduces a new parameter allowing to define more information for a disk. The new parameter is -disk: -disk file[,if=type][,bus=n][,unit=m][,cyls=c,heads=h,secs=s[,trans=t]] where type defines the bus type (by default

[Qemu-devel] [PATCH 1/3] Add args to -cdrom to define where is connected the cdrom

2007-10-28 Thread Laurent . Vivier
From: Laurent Vivier [EMAIL PROTECTED](none) This patch allows to define where is connected the CDROM device (bus, unit). It extends the -cdrom syntax to add these paramaters: -cdrom file[,if=type][,bus=n][,unit=m] where type defines the interface (by default, ide) n defines

[Qemu-devel] [PATCH 3/3] Add scsi support to pc target

2007-10-28 Thread Laurent . Vivier
From: Laurent Vivier [EMAIL PROTECTED](none) This patch add the support of SCSI disk and cdrom for PC target, using previously introduced parameters -disk and -cdrom. For the momemt, it supports only one bus, but more can be added easily. --- hw/lsi53c895a.c |3 -- hw/pc.c | 16

Re: [Qemu-devel] [PATCH 1/3] Add args to -cdrom to define where is connected the cdrom

2007-10-29 Thread Laurent Vivier
Daniel P. Berrange a écrit : On Sun, Oct 28, 2007 at 11:43:33PM +0100, [EMAIL PROTECTED] wrote: From: Laurent Vivier [EMAIL PROTECTED](none) This patch allows to define where is connected the CDROM device (bus, unit). It extends the -cdrom syntax to add these paramaters: -cdrom file

Re: [Qemu-devel] [PATCH 0/3] Add SCSI support for PC target

2007-10-31 Thread Laurent Vivier
Dan Kenigsberg a écrit : Hi, I have some newby's questions: is a speedup expected, comparing to ide We should have a speedup. But an improvement can also be to interface a _real_ SCSI disk and send directly to it the SCSI commands generated by the _virtual_ SCSI interface (as it is done in

[Qemu-devel] [PATCH 3/7] Add floppy support by -disk

2007-10-31 Thread Laurent Vivier
This patch allows to define floppy using the -disk syntax. It adds an interface type floppy. -fda file is an alias for -disk file,index=0,if=floppy -fdb file is an alias for -disk file,index=1,if=floppy -- vl.c | 86 +++ vl.h |

[Qemu-devel] [PATCH 4/7] remove fd_filename from the machine init interface

2007-10-31 Thread Laurent Vivier
As the parameter fd_filename seems unused and as we can't provide it anymore using the -disk interface, this patch removes it. -- hw/an5206.c|2 +- hw/etraxfs.c |2 +- hw/integratorcp.c |2 +- hw/mcf5208.c |2 +- hw/mips_malta.c|2 +-

[Qemu-devel] [PATCH 5/7] Add parallel flash support by -disk

2007-10-31 Thread Laurent Vivier
This patch allows to define a parallel flash using -disk syntax. It adds an interface type pflash. -pflash file is an alias for -disk file,if=pflash -- vl.c | 59 +-- vl.h |2 +- 2 files changed, 34 insertions(+), 27 deletions(-)

[Qemu-devel] [PATCH 6/7] Add flash support by -disk

2007-10-31 Thread Laurent Vivier
This patch allows to define a flash (mtd) using the -disk syntax. It adds an interface type mtd -mtdblock file is an alias for -disk file,if=mtd -- vl.c | 39 +++ vl.h |5 - 2 files changed, 27 insertions(+), 17 deletions(-) Index: qemu/vl.c

[Qemu-devel] [PATCH 7/7] Add SecureDigital support by -disk

2007-10-31 Thread Laurent Vivier
This patch allows to define SecureDigital disk using -disk syntax It adds an interface type sd -sd file becomes the alias of -disk file,if=sd -- vl.c | 43 ++- vl.h |3 ++- 2 files changed, 28 insertions(+), 18 deletions(-) Index: qemu/vl.c

[Qemu-devel] [PATCH 1/7] Add arg -disk to define new disk with more features

2007-10-31 Thread Laurent Vivier
This patch introduces a new parameter allowing to define disks. The new parameter is -disk: -disk file[,if=type][,index=i][,bus=n][,unit=m][,media=d][,cyls=c,heads=h,secs=s[,trans=t]][snapshot=on|off] where: file is the disk image type is the interface type (ide) i is the

[Qemu-devel] [PATCH 0/7] Add -disk interface

2007-10-31 Thread Laurent Vivier
This series of patches add a new interface to qemu to define storages. The new parameter is -disk: -disk file[,if=type][,index=i][,bus=n][,unit=m][,media=d][,cyls=c,heads=h,secs=s[,trans=t]][snapshot=on|off] where: file is the disk image type is the interface type (ide, scsi,

[Qemu-devel] [PATCH 2/7] Add scsi support for the target PC

2007-10-31 Thread Laurent Vivier
This patch adds the SCSI support for the target PC. It allows to initalize SCSI interface in the PC init machine. it adds a new interface type scsi to -disk interface. -disk file,if=scsi,bus=0,unit=6 allows to connect the disk image file to the bus 0 with the unit id 6. if there is no SCSI

Re: [Qemu-devel] [PATCH 1/3] Add args to -cdrom to define where is connected the cdrom

2007-11-02 Thread Laurent Vivier
Thiemo Seufer a écrit : Laurent Vivier wrote: Daniel P. Berrange a écrit : On Sun, Oct 28, 2007 at 11:43:33PM +0100, [EMAIL PROTECTED] wrote: From: Laurent Vivier [EMAIL PROTECTED](none) This patch allows to define where is connected the CDROM device (bus, unit). It extends the -cdrom syntax

Re: [Qemu-devel] [PATCH 1/3] Add args to -cdrom to define where is connected the cdrom

2007-11-08 Thread Laurent Vivier
Le jeudi 08 novembre 2007 à 00:32 +0100, Fabrice Bellard a écrit : Laurent Vivier wrote: Thiemo Seufer a écrit : Laurent Vivier wrote: Daniel P. Berrange a écrit : On Sun, Oct 28, 2007 at 11:43:33PM +0100, [EMAIL PROTECTED] wrote: From: Laurent Vivier [EMAIL PROTECTED](none

[Qemu-devel] [PATCH] remove unused parameters from QEMUMachineInitFunc

2007-11-08 Thread Laurent Vivier
It appears that fd_filename and snapshot are not needed/used by machine init functions (QEMUMachineInitFunc). This patch removes them. Index: qemu/vl.h === --- qemu.orig/vl.h 2007-11-08 16:36:36.0 +0100 +++ qemu/vl.h

[Qemu-devel] [PATCH 0/2][UPDATE] Add -drive parameter

2007-11-12 Thread Laurent Vivier
These two patches are update of the patches previously sent. [PATCH 1/2][UPDATE] remove unused parameters from QEMUMachineInitFunc [PATCH 2/2][UPDATED] Add arg -drive to define new drive with more features Laurent

[Qemu-devel] [PATCH 1/2][UPDATE] remove unused parameters from QEMUMachineInitFunc

2007-11-12 Thread Laurent Vivier
It appears that fd_filename and snapshot are not needed/used by machine init functions (QEMUMachineInitFunc). This patch removes them. --- hw/an5206.c|4 ++-- hw/etraxfs.c |4 ++-- hw/integratorcp.c |1 - hw/mcf5208.c |1 - hw/mips_malta.c|4 ++--

Re: [Qemu-devel] [PATCH 1/2][UPDATE] remove unused parameters from QEMUMachineInitFunc

2007-11-12 Thread Laurent Vivier
Le lundi 12 novembre 2007 à 18:23 +0200, Blue Swirl a écrit : On 11/12/07, Laurent Vivier [EMAIL PROTECTED] wrote: It appears that fd_filename and snapshot are not needed/used by machine init functions (QEMUMachineInitFunc). This patch removes them. I don't know what was the idea

Re: [Qemu-devel] [PATCH 2/2][UPDATE] Add arg -drive to define new drive with more features

2007-11-12 Thread Laurent Vivier
Le lundi 12 novembre 2007 à 18:44 +0200, Blue Swirl a écrit : On 11/12/07, Laurent Vivier [EMAIL PROTECTED] wrote: It also defines the default interface type to scsi for targets realview, SS-5, SS-10, versatilepb, versatileab to keep old behavior, where -hda is a SCSI disk. For maximal

Re: [Qemu-devel] [PATCH 1/2][UPDATE] remove unused parameters from QEMUMachineInitFunc

2007-11-12 Thread Laurent Vivier
Find attached an updated^2 patch. Laurent Le lundi 12 novembre 2007 à 17:36 +0100, Laurent Vivier a écrit : Le lundi 12 novembre 2007 à 18:23 +0200, Blue Swirl a écrit : On 11/12/07, Laurent Vivier [EMAIL PROTECTED] wrote: It appears that fd_filename and snapshot are not needed/used

Re: [Qemu-devel] [PATCH 2/2][UPDATE] Add arg -drive to define new drive with more features

2007-11-13 Thread Laurent Vivier
Le mardi 13 novembre 2007 à 22:50 +0200, Blue Swirl a écrit : On 11/13/07, Laurent Vivier [EMAIL PROTECTED] wrote: Attached is an updated patch (corrected as you want and with more check on -drive arguments) Sparc64 didn't compile until I added a MAX_IDE_BUS #define. Right. Do you know

[Qemu-devel] [PATCH 0/3] Real SCSI device passthrough

2007-11-28 Thread Laurent Vivier
This series of patches allows to connect real SCSI device to the virtual SCSI controller of Qemu using the SCSI Generic interface (/dev/sg) for instance: qemu -hda my_disk.qcow2 -drive file=/dev/sg3,if=scsi [PATCH 1/3] SG support (Synchronous I/O) This patch allows to connect the virtual

[Qemu-devel] [PATCH 3/3] SG support (Asynchronous Send Command)

2007-11-28 Thread Laurent Vivier
This patch modifies scsi_send_command() to use asynchronous I/O with SCSI Generic. This allows to use command with data transfers that are not immediate. Old behavior can generate softlockup in the guest kernel. hw/lsi53c895a.c has been modified to manage this new behavior. ---

[Qemu-devel] [PATCH 2/3] SG support (Asynchronous Read/Write)

2007-11-28 Thread Laurent Vivier
This patch modifies scsi_read_data() and scsi_write_data() to use asynchronous I/O whith SCSI Generic. block-raw.s has been modified to define the number of bytes to transfer instead of the number of blocks: if nb_sectors is less than zero the nb_sectors is a number of bytes. --- block-raw.c

[Qemu-devel] [PATCH 1/3] SG support (Synchronous I/O)

2007-11-28 Thread Laurent Vivier
S.A.S. + * Based on code by Paul Brook + * Based on code by Fabrice Bellard + * + * Written by Laurent Vivier [EMAIL PROTECTED] + * + * This code is licenced under the LGPL. + * + */ + +#include qemu-common.h +#include block.h +#include scsi-disk.h + +#ifndef __linux__ + +SCSIDevice *scsi_generic_init

[Qemu-devel] [PATCH 0/2] Open disk images with O_DIRECT

2007-11-28 Thread Laurent Vivier
These patches allow to open file using O_DIRECT and bypass the host I/O cache. [PATCH 1/2] Add directio parameter to -drive Using directio=on with -drive will open the disk image file using O_DIRECT. [PATCH 2/2] Direct IDE I/O This patch enhances the -drive ,directio=on mode with

[Qemu-devel] [PATCH 2/2] Direct IDE I/O

2007-11-28 Thread Laurent Vivier
This patch enhances the -drive ,directio=on mode with IDE drive emulation by removing the buffer used in the IDE emulation. --- block.c | 10 +++ block.h |2 block_int.h |1 cpu-all.h |1 exec.c | 19 ++ hw/ide.c| 176

[Qemu-devel] [PATCH 1/2] Add directio parameter to -drive

2007-11-28 Thread Laurent Vivier
This patch add a new parameter to -drive Using directio=on with -drive will open the disk image file using O_DIRECT. By default, directio is set to off. example: -drive file=my_disk.qcow2,directio=on --- block-raw.c|4 block.c|2 +- block.h|1 + hw/fdc.c

  1   2   3   4   5   6   7   8   9   10   >