Re: [Qemu-devel] [PATCH 1/3] Consolidate printing of block driver options

2010-12-03 Thread Jes Sorensen
On 12/03/10 11:57, Stefan Hajnoczi wrote: On Thu, Dec 2, 2010 at 5:46 PM, jes.soren...@redhat.com wrote: +create_options = append_option_parameters(create_options, + drv-create_options); +create_options =

[Qemu-devel] [PATCH 0/3] Cleanup qemu-img code

2010-12-02 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com Hi, These patches moves the handling of block help printing to shared code, which allows the ? detection to happen early in the parsing, instead of half way down img_create() and img_convert(). I would like to see this happen as I would like to pull

[Qemu-devel] [PATCH 1/3] Consolidate printing of block driver options

2010-12-02 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com This consolidates the printing of block driver options in print_block_option_help() which is called from both img_create() and img_convert(). This allows for the ? detection to be done just after the parsing of options and the filename, instead of half

[Qemu-devel] [PATCH 3/3] Fail if detecting an unknown option

2010-12-02 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com This patch changes qemu-img to exit if an unknown option is detected, instead of trying to continue with a set of arguments which may be incorrect. Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- qemu-img.c | 48

[Qemu-devel] [PATCH 2/3] Fix formatting and missing braces in qemu-img.c

2010-12-02 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- qemu-img.c | 77 +++ 1 files changed, 51 insertions(+), 26 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index 99f30b3..d0dc445 100644

[Qemu-devel] [Bug 587993] Re: qemu-kvm 0.12.4+dfsg-1 from debian squeeze crashes BUG: unable to handle kernel NULL pointer (sym53c8xx)

2010-12-01 Thread Jes Sorensen
Looks a duplicate of https://sourceforge.net/tracker/index.php?func=detailaid=2042889group_id=180599atid=893831 Closed the SF bug, lets focus on this issue here. Jes ** Bug watch added: SourceForge.net Tracker #2042889 http://sourceforge.net/support/tracker.php?aid=2042889 -- qemu-kvm

Re: [Qemu-devel] CFP: 1st International QEMU Users Forum

2010-12-01 Thread Jes Sorensen
On 11/29/10 08:44, Jes Sorensen wrote: On 11/26/10 15:21, Anthony Liguori wrote: Attaching is easier logistically but I don't know how much that helps if it's a full 3 days instead of just a single day. Might be worth poking the LF folks for some advice. But the key point is breadth

Re: [Qemu-devel] CFP: 1st International QEMU Users Forum

2010-11-28 Thread Jes Sorensen
On 11/26/10 15:21, Anthony Liguori wrote: On 11/26/2010 08:15 AM, Jes Sorensen wrote: I would be all in favor of this! Do you want to attach it to another conference or totally standalone? Attaching is easier logistically but I don't know how much that helps if it's a full 3 days

Re: [Qemu-devel] [PATCH] Make SCSI HBA configurable

2010-11-26 Thread Jes Sorensen
On 11/25/10 14:22, Paul Brook wrote: On 25.11.2010, at 11:59, Paul Brook wrote: RH needs to compile out as much as they can from the code base, because they state that they support everything that's compiled in. So making as much as possible optional is good. And I don't see why we should

Re: [Qemu-devel] CFP: 1st International QEMU Users Forum

2010-11-26 Thread Jes Sorensen
On 11/26/10 12:53, Alexander Graf wrote: On 26.11.2010, at 08:56, Jes Sorensen wrote: Doing a get together somewhere in Europe really shouldn't be that hard to organize, however it would probably be useful to have it attached to a bigger conference to help with the logistics. There is going

Re: [Qemu-devel] CFP: 1st International QEMU Users Forum

2010-11-26 Thread Jes Sorensen
On 11/26/10 15:13, Anthony Liguori wrote: On 11/26/2010 07:39 AM, Alexander Graf wrote: I can certainly get in touch with the organizers, but I can't answer the latter question. There are usually at least ~10-20 kernel developers around and it's easy to get most of the German qemu people

Re: [Qemu-devel] CFP: 1st International QEMU Users Forum

2010-11-25 Thread Jes Sorensen
On 11/26/10 00:48, Alexander Graf wrote: On 25.11.2010, at 23:53, Andreas Färber wrote: From the fosdem homepage: We would like to inform all interested parties that the call for devrooms is running at its end. Coming Saturday, 16 October at 23.59 the call for devrooms closes. So

[Qemu-devel] Re: [PATCH v5] virtio-9p: fix build on !CONFIG_UTIMENSAT

2010-11-24 Thread Jes Sorensen
files changed, 62 insertions(+), 2 deletions(-) Hi Hidetoshi, This looks good to me! Acked-by: Jes Sorensen jes.soren...@redhat.com Cheers, Jes

Re: [Qemu-devel] [PATCH 1/1] NBD isn't used by qemu-img, so don't link qemu-img against NBD objects

2010-11-22 Thread Jes Sorensen
On 11/22/10 15:54, Anthony Liguori wrote: On 11/22/2010 08:38 AM, Kevin Wolf wrote: You're free to dislike NBD as much as you want. Just compiling it out unconditionally and calling it a cleanup is a bit too much. ;-) A configure option for disabling NBD sounds reasonable, though I'm not

Re: [Qemu-devel] [PATCH] Make SCSI HBA configurable

2010-11-22 Thread Jes Sorensen
|2 ++ default-configs/x86_64-softmmu.mak |2 ++ 12 files changed, 20 insertions(+), 7 deletions(-) Acked-by: Jes Sorensen jes.soren...@redhat.com With a configure flag to flip modify the list from the default it would reach perfect status :) Cheers, Jes

Re: [Qemu-devel] [PATCH 1/1] NBD isn't used by qemu-img, so don't link qemu-img against NBD objects

2010-11-22 Thread Jes Sorensen
On 11/22/10 16:08, Anthony Liguori wrote: On 11/22/2010 08:58 AM, Jes Sorensen wrote: On 11/22/10 15:54, Anthony Liguori wrote: Using block format whitelisting should be enough to disable nbd. I don't see a need for an explicit --disable-nbd option. Right, the right solution

Re: [Qemu-devel] [PATCH 1/1] NBD isn't used by qemu-img, so don't link qemu-img against NBD objects

2010-11-22 Thread Jes Sorensen
On 11/22/10 16:20, Anthony Liguori wrote: On 11/22/2010 09:10 AM, Jes Sorensen wrote: On 11/22/10 16:08, Anthony Liguori wrote: On 11/22/2010 08:58 AM, Jes Sorensen wrote: Right, the right solution is probably to create a block driver list argument for configure, similar to what we

Re: [Qemu-devel] [PATCH 1/1] NBD isn't used by qemu-img, so don't link qemu-img against NBD objects

2010-11-21 Thread Jes Sorensen
On 11/20/10 19:31, Stefan Hajnoczi wrote: On Sat, Nov 20, 2010 at 6:04 PM, Andreas Färber andreas.faer...@web.de wrote: http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man3/daemon.3.html Deprecated in favor of using launchd. Removing qemu-nbd from the

Re: [Qemu-devel] [PATCH 1/1] NBD isn't used by qemu-img, so don't link qemu-img against NBD objects

2010-11-21 Thread Jes Sorensen
On 11/20/10 18:22, Andreas Färber wrote: Am 19.11.2010 um 17:30 schrieb jes.soren...@redhat.com: From: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- Makefile |2 +- Makefile.objs | 12 ++-- 2 files changed, 11 insertions

Re: [Qemu-devel] [PATCH v3] virtio-9p: fix build on !CONFIG_UTIMENSAT

2010-11-21 Thread Jes Sorensen
On 11/21/10 16:22, Anthony Liguori wrote: On 11/14/2010 08:15 PM, Hidetoshi Seto wrote: This patch introduce a fallback mechanism for old systems that do not support utimensat(). This fix build failure with following warnings: hw/virtio-9p-local.c: In function 'local_utimensat':

Re: [Qemu-devel] [PATCH 16/16] megasas: LSI Megaraid SAS emulation

2010-11-19 Thread Jes Sorensen
On 11/18/10 15:47, Hannes Reinecke wrote: This patch adds an emulation for the LSI Megaraid SAS HBA. Signed-off-by: Hannes Reinecke h...@suse.de --- Makefile.objs |2 +- hw/megasas.c | 1826 + hw/mfi.h | 1197

Re: [Qemu-devel] [PATCH 16/16] megasas: LSI Megaraid SAS emulation

2010-11-19 Thread Jes Sorensen
On 11/19/10 15:06, Markus Armbruster wrote: Only comment, as you are adding another SCSI driver, maybe it's time to make the driver selection configurable, rather than hard coding the build? What do you mean by that? We hardcode lsi53c895a in two places where we really mean default SCSI

[Qemu-devel] [PATCH 1/1] NBD isn't used by qemu-img, so don't link qemu-img against NBD objects

2010-11-19 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- Makefile |2 +- Makefile.objs | 12 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 747e47c..a503c1c 100644 --- a/Makefile +++ b

Re: [Qemu-devel] [PATCH 16/16] megasas: LSI Megaraid SAS emulation

2010-11-19 Thread Jes Sorensen
On 11/19/10 17:36, Alexander Graf wrote: On 19.11.2010, at 15:31, Jes Sorensen wrote: What I mean is for most other device types we allow to specify a list of wanted devices at the configure line, which is what I am suggesting we added support for for SCSI as well. Oh, you mean something

[Qemu-devel] Re: [PATCH v4] virtio-9p: fix build on !CONFIG_UTIMENSAT

2010-11-18 Thread Jes Sorensen
On 11/18/10 01:41, Hidetoshi Seto wrote: This patch introduce a fallback mechanism for old systems that do not support utimensat(). This fix build failure with following warnings: hw/virtio-9p-local.c: In function 'local_utimensat': hw/virtio-9p-local.c:479: warning: implicit declaration of

[Qemu-devel] Re: [PATCH v4] virtio-9p: fix build on !CONFIG_UTIMENSAT

2010-11-18 Thread Jes Sorensen
On 11/18/10 09:48, Hidetoshi Seto wrote: (2010/11/18 17:02), Jes Sorensen wrote: Hi Hidetoshi, I think the idea of the patch is good, but please move qemu_utimensat() to oslib-posix.c and provide a wrapper for oslib-win32.c. It is emulation for a system library function, so it doesn't belong

[Qemu-devel] [Bug 676029] Re: Silently fail with wrong vde socket dir

2010-11-18 Thread Jes Sorensen
Hello, Could you please provide more data, what kinda of system and version are you running on? Jes -- Silently fail with wrong vde socket dir https://bugs.launchpad.net/bugs/676029 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

Re: [Qemu-devel] [RFC][PATCH v3 02/21] virtproxy: qemu-vp, standalone daemon skeleton

2010-11-18 Thread Jes Sorensen
On 11/16/10 02:15, Michael Roth wrote: Daemon to be run in guest, or on host in standalone mode. (re-)implements some qemu utility functions used by core virtproxy.c code via wrapper functions. For built-in virtproxy code we will define these wrapper functions in terms of qemu's built-in

Re: [Qemu-devel] [RFC][PATCH v3 01/21] virtproxy: base data structures and constants

2010-11-18 Thread Jes Sorensen
On 11/16/10 02:15, Michael Roth wrote: Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- virtproxy.c | 136 +++ virtproxy.h | 34 +++ 2 files changed, 170 insertions(+), 0 deletions(-) create mode 100644

Re: [Qemu-devel] [RFC][PATCH v3 03/21] virtproxy: add debug functions for virtproxy core

2010-11-18 Thread Jes Sorensen
On 11/16/10 02:15, Michael Roth wrote: Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- virtproxy.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/virtproxy.c b/virtproxy.c index 8f18d83..3686c77 100644 --- a/virtproxy.c +++

Re: [Qemu-devel] [RFC][PATCH v3 10/21] virtproxy: add handler for data packets

2010-11-18 Thread Jes Sorensen
On 11/16/10 02:16, Michael Roth wrote: +if (pkt-type == VP_PKT_CLIENT) { +TRACE(recieved client packet, client fd: %d, server fd: %d, + pkt-payload.proxied.client_fd, pkt-payload.proxied.server_fd); +fd = pkt-payload.proxied.server_fd; +} else if

Re: [Qemu-devel] [RFC][PATCH v3 11/21] virtproxy: add handler for control packet

2010-11-18 Thread Jes Sorensen
On 11/16/10 02:16, Michael Roth wrote: Process control packets coming in over the channel. This entails setting up/tearing down connections to local services initiated from the other end of the channel. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- virtproxy.c | 154

Re: [Qemu-devel] [RFC][PATCH v3 16/21] virtproxy: add option parser helper vp_parse()

2010-11-18 Thread Jes Sorensen
On 11/16/10 02:16, Michael Roth wrote: +/* utility function to parse iforward/oforward options for qemu-vp + * or virtproxy chardev and put them into QemuOpts + */ +int vp_parse(QemuOpts *opts, const char *str, bool is_channel) +{ +/* TODO: use VP_SERVICE_ID_LEN, bring it into

Re: [Qemu-devel] [RFC][PATCH v3 15/21] virtproxy: add read handler for proxied connections

2010-11-18 Thread Jes Sorensen
On 11/16/10 02:16, Michael Roth wrote: +/* read handler for proxied connections */ +static void vp_conn_read(void *opaque) +{ +VPConn *conn = opaque; +VPDriver *drv = conn-drv; +VPPacket pkt; +char buf[VP_CONN_DATA_LEN]; +int fd, count, ret; +bool client; + +

Re: [Qemu-devel] [RFC][PATCH v3 17/21] virtproxy: add virtproxy-builtin.c for compat defs

2010-11-18 Thread Jes Sorensen
On 11/16/10 02:16, Michael Roth wrote: Virtproxy relies on routines defined within qemu-vp which mirror various i/o related operations in qemu to provide similar functionality for the guest daemon. When building virtproxy as part of qemu rather than qemu-vp we need these definitions to provide

Re: [Qemu-devel] [RFC][PATCH v3 18/21] virtproxy: qemu integration, add virtproxy chardev

2010-11-18 Thread Jes Sorensen
On 11/16/10 02:16, Michael Roth wrote: This allows us to create a virtproxy instance via a chardev. It can now be created with something like: qemu -chardev virtproxy,id=vp1 \ -device virtio-serial \ -device virtserialport,chardev=vp1 In the future the ability to add

Re: [Qemu-devel] [RFC][PATCH v4 00/18] virtagent: host/guest RPC communication agent

2010-11-18 Thread Jes Sorensen
On 11/16/10 17:01, Michael Roth wrote: This set of patches is meant to be applied on top of the recently submitted Virtproxy v3 patchset. It can also be obtained at: git://repo.or.cz/qemu/mdroth.git virtproxy_v3 OVERVIEW: There are a wide range of use cases motivating the need for a

Re: [Qemu-devel] [RFC][PATCH v4 01/18] virtagent: add common rpc transport defs

2010-11-18 Thread Jes Sorensen
On 11/16/10 17:01, Michael Roth wrote: +#define DEBUG_VA + +#ifdef DEBUG_VA +#define TRACE(msg, ...) do { \ +fprintf(stderr, %s:%s():L%d: msg \n, \ +__FILE__, __FUNCTION__, __LINE__, ## __VA_ARGS__); \ +} while(0) +#else +#define TRACE(msg, ...) \ +do { } while (0)

[Qemu-devel] [Bug 676029] Re: Silently fail with wrong vde socket dir

2010-11-18 Thread Jes Sorensen
Given that you know what the problem is, it would probably have been faster to post a patch than just updating the bug and marking it confirmed -- Silently fail with wrong vde socket dir https://bugs.launchpad.net/bugs/676029 You received this bug notification because you are a member of

Re: [Qemu-devel] [RFC][PATCH v4 02/18] virtagent: base definitions for host/guest RPC server

2010-11-18 Thread Jes Sorensen
On 11/16/10 17:01, Michael Roth wrote: +#include syslog.h +#include qemu_socket.h +#include virtagent-daemon.h +#include virtagent-common.h +#include virtagent.h + +static bool va_enable_syslog = false; /* enable syslog'ing of RPCs */ + +#define SLOG(msg, ...) do { \ +char

Re: [Qemu-devel] [RFC][PATCH v4 04/18] virtagent: base RPC client definitions

2010-11-18 Thread Jes Sorensen
On 11/16/10 17:01, Michael Roth wrote: diff --git a/monitor.c b/monitor.c index 8cee35d..cb81cd7 100644 --- a/monitor.c +++ b/monitor.c @@ -42,6 +42,7 @@ #include audio/audio.h #include disas.h #include balloon.h +#include virtagent.h #include qemu-timer.h #include migration.h

Re: [Qemu-devel] [RFC][PATCH v4 06/18] virtagent: add agent_viewfile command

2010-11-18 Thread Jes Sorensen
On 11/16/10 17:01, Michael Roth wrote: Utilize the getfile RPC to provide a means to view text files in the guest. Getfile can handle binary files as well but we don't advertise that here due to the special handling requiring to store it and provide it back to the user (base64 encoding it for

Re: [Qemu-devel] [RFC][PATCH v4 09/18] virtagent: add va_shutdown RPC

2010-11-18 Thread Jes Sorensen
On 11/16/10 17:01, Michael Roth wrote: RPC to initiate guest shutdown/reboot/powerdown Do we really need this? After all those events can be passed down via ACPI? Cheers, Jes

Re: [Qemu-devel] [RFC][PATCH v4 10/18] virtagent: add agent_shutdown monitor command

2010-11-18 Thread Jes Sorensen
On 11/16/10 17:01, Michael Roth wrote: Provide monitor command to initiate guest shutdown/reboot/powerdown +int do_agent_shutdown(Monitor *mon, const QDict *mon_params, + MonitorCompletion cb, void *opaque) +{ +xmlrpc_env env; +xmlrpc_value *params; +

Re: [Qemu-devel] [RFC][PATCH v4 14/18] virtagent: add client capabilities init function

2010-11-18 Thread Jes Sorensen
On 11/16/10 17:01, Michael Roth wrote: Non-monitor version of agent_capabilities monitor function. This is called by the local RPC server when it gets a hello from the guest agent to re-negotiate guest agent capabilities. Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com ---

Re: [Qemu-devel] [RFC][PATCH v4 09/18] virtagent: add va_shutdown RPC

2010-11-18 Thread Jes Sorensen
On 11/18/10 16:35, Anthony Liguori wrote: On 11/18/2010 08:17 AM, Jes Sorensen wrote: On 11/16/10 17:01, Michael Roth wrote: RPC to initiate guest shutdown/reboot/powerdown Do we really need this? After all those events can be passed down via ACPI? Reboot can't be passed

Re: [Qemu-devel] [RFC][PATCH v3 01/21] virtproxy: base data structures and constants

2010-11-18 Thread Jes Sorensen
On 11/18/10 16:41, Anthony Liguori wrote: On 11/18/2010 09:35 AM, Michael Roth wrote: +/* listening fd, one for each service we're forwarding to remote end */ +typedef struct VPOForward { +VPDriver *drv; +int listen_fd; +char service_id[VP_SERVICE_ID_LEN]; +

Re: [Qemu-devel] [RFC][PATCH v3 01/21] virtproxy: base data structures and constants

2010-11-18 Thread Jes Sorensen
On 11/18/10 16:56, Anthony Liguori wrote: On 11/18/2010 09:51 AM, Jes Sorensen wrote: Yes, I think Jes was just looking for an excuse to say typedefmeharder :-) Actually typedefs are not listed as a must do thing in CODING_STYLE, fortunately! That's a bug in CODING_STYLE

Re: [Qemu-devel] [RFC][PATCH v3 11/21] virtproxy: add handler for control packet

2010-11-18 Thread Jes Sorensen
On 11/18/10 17:18, Michael Roth wrote: On 11/18/2010 05:35 AM, Jes Sorensen wrote: You should never have two closing braces in the same column like this - something is wrong with the formatting. That's from using a block for the case switch () { case: { ... } } Alternative

Re: [Qemu-devel] [PATCH] virtio-9p: fix build on !CONFIG_UTIMENSAT v2

2010-11-12 Thread Jes Sorensen
On 11/08/10 07:44, M. Mohan Kumar wrote: This patch introduce a fallback mechanism for old systems that do not support utimensat. This will fix build failure with following warnings: hw/virtio-9p-local.c: In function 'local_utimensat': hw/virtio-9p-local.c:479: warning: implicit declaration

Re: [Qemu-devel] Access to specific isa card with Qemu???

2010-11-12 Thread Jes Sorensen
On 11/08/10 17:21, Djamel Hakkar wrote: Hello, We have a software that runs on MS-DOS and must communicate with a specific card installed on port isa. We want to use this software in Qemu with a machine that runs XP. Is it possible to access to the ISA port with Qemu in this case? Do

[Qemu-devel] [PATCH] Add missing braces

2010-11-11 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com This patch adds missing braces around if/else statements that call macros which are likely to result in errors if the macro is changed. It also makes the code comply better with CODING_STYLE. Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- hw

[Qemu-devel] Re: [PATCH] pc: Fix e820 fw_cfg for big endian

2010-11-09 Thread Jes Sorensen
On 11/08/10 04:57, Alex Williamson wrote: Signed-off-by: Alex Williamson alex.william...@redhat.com --- Compile tested only. Only current user is kvm, no cross-arch users. hw/pc.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) Patch looks fine to me, but are

Re: [Qemu-devel] Re: [PATCH] pc: Fix e820 fw_cfg for big endian

2010-11-09 Thread Jes Sorensen
On 11/09/10 13:42, Alexander Graf wrote: On 09.11.2010, at 11:57, Jes Sorensen wrote: On 11/08/10 04:57, Alex Williamson wrote: Signed-off-by: Alex Williamson alex.william...@redhat.com --- Compile tested only. Only current user is kvm, no cross-arch users. hw/pc.c | 14

[Qemu-devel] [PATCH 1/1] Fold send_all() wrapper unix_write() into one function

2010-11-01 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com The current send_all() wrapper for POSIX calls does nothing but call unix_write(). Merge them to simplify the code. Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- qemu-char.c |8 ++-- 1 files changed, 2 insertions(+), 6 deletions

[Qemu-devel] [PATCH v4 0/9] Re-factor osdep code + macro and brace fixes

2010-10-26 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com Hi, Here is another set of patches which tries to split up osdep.c further into posix and win32 versions. It introduces oslib-{posix,win32}.c files which are used for functions that are OS specific core library functionality, like gettimeofday

[Qemu-devel] [PATCH 3/9] qemu_pipe() is used only by POSIX code, so move to oslib-posix.c

2010-10-26 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- osdep.c | 22 -- oslib-posix.c | 22 ++ 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/osdep.c b/osdep.c index 902fce9..926c8ad

[Qemu-devel] [PATCH 4/9] We only support eventfd under POSIX, move qemu_eventfd() to os-posix.c

2010-10-26 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- os-posix.c | 32 osdep.c| 34 -- 2 files changed, 32 insertions(+), 34 deletions(-) diff --git a/os-posix.c b/os-posix.c

[Qemu-devel] [PATCH 2/9] Move osdep socket code to oslib-{posix, win32}.c

2010-10-26 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- osdep.c | 38 -- oslib-posix.c | 15 +++ oslib-win32.c | 21 + 3 files changed, 36 insertions(+), 38 deletions

[Qemu-devel] [PATCH 6/9] Do not redefine reserved key-words TRUE/FALSE

2010-10-26 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com TRUE/FALSE are generally reserved keywords and shouldn't be defined in a driver like this. Rename the macros to SDP_TRUE and SDP_FALSE respectively. Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- hw/bt-sdp.c | 20 ++-- 1

[Qemu-devel] [PATCH 8/9] Consolidate oom_check() functions

2010-10-26 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com This consolidates the duplicated oom_check() functions, as well as splitting them into OS dependant versions to avoid the #ifdef grossness that was present in the old osdep.c version. Signed-off-by: Jes Sorensen jes.soren...@redhat.com

[Qemu-devel] [PATCH 7/9] Separate qemu_pidfile() into OS specific versions

2010-10-26 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- os-posix.c | 21 + os-win32.c | 24 osdep.c| 38 -- 3 files changed, 45 insertions(+), 38 deletions

[Qemu-devel] [PATCH 1/9] Move QEMU OS dependant library functions to OS specific files

2010-10-26 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com This moves library functions used by both QEMU and the QEMU tools, such as qemu-img, qemu-nbd etc. from osdep.c to oslib-{posix,win32}.c In addition it introduces oslib-obj.y to the Makefile set to be included by the various targets, instead of relying

[Qemu-devel] [PATCH 5/9] Move qemu_gettimeofday() to OS specific files

2010-10-26 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- m68k-semi.c|2 +- osdep.c| 31 --- osdep.h| 15 --- oslib-win32.c | 27 +++ posix-aio

[Qemu-devel] [PATCH 9/9] Remove unncessary includes

2010-10-26 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com No need to include stdlib.h for BSD as it is included by qemu-common.h, windows.h is handled by sysemu.h and osdep.c no longer needs malloc.h Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- osdep.c |8 1 files changed, 0 insertions

[Qemu-devel] Re: [PATCH 5/9] Move qemu_gettimeofday() to OS specific files

2010-10-25 Thread Jes Sorensen
On 10/23/10 16:42, Blue Swirl wrote: On Mon, Oct 18, 2010 at 8:15 AM, jes.soren...@redhat.com wrote: From: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Jes Sorensen jes.soren...@redhat.com Almost there: CCm68k-linux-user/m68k-semi.o /src/qemu/m68k-semi.c: In function

Re: [Qemu-devel] [PATCH v9 0/4] Introduce strtosz and make use of it

2010-10-22 Thread Jes Sorensen
On 10/22/10 09:59, Markus Armbruster wrote: jes.soren...@redhat.com writes: From: Jes Sorensen jes.soren...@redhat.com This patch introduces cutils.c: strtosz() and gets rid of the multiple custom hacks for parsing byte sizes. In addition it adds supports for specifying human style sizes

[Qemu-devel] [PATCH v9 0/4] Introduce strtosz and make use of it

2010-10-21 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com This patch introduces cutils.c: strtosz() and gets rid of the multiple custom hacks for parsing byte sizes. In addition it adds supports for specifying human style sizes such as 1.5G. Last it eliminates the horrible abuse of a float to store the byte

[Qemu-devel] [PATCH 4/4] Remove obsolete 'f' double parameter type

2010-10-21 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com 'f' double is no longer used, and we should be using floating point variables to store byte sizes. Remove it. Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- monitor.c | 18 +- 1 files changed, 1 insertions(+), 17 deletions

[Qemu-devel] [PATCH 1/4] Introduce strtosz() library function to convert a string to a byte count.

2010-10-21 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com strtosz() returns -1 on error. It now supports human unit formats in eg. 1.0G, with better error handling. The following suffixes are supported: B/b = bytes K/k = KB M/m = MB G/g = GB T/t = TB This patch changes -numa and -m input to use strtosz

[Qemu-devel] [PATCH 2/4] Add support for 'o' octet (bytes) format as monitor parameter.

2010-10-21 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com Octet format relies on strtosz which supports K/k, M/m, G/g, T/t suffixes and unit support for humans, like 1.3G Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- monitor.c | 29 + 1 files changed, 29 insertions

[Qemu-devel] [PATCH 3/4] Switch migrate_set_speed() to take an 'o' argument rather than a float.

2010-10-21 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com Clarify default value of MB in migration speed argument in monitor, if no suffix is specified. This differ from previous default of bytes, but is consistent with the rest of the places where we accept a size argument. Signed-off-by: Jes Sorensen

[Qemu-devel] Re: [PATCH 8/9] Consolidate oom_check() functions

2010-10-18 Thread Jes Sorensen
On 10/16/10 21:02, Blue Swirl wrote: On Sat, Oct 16, 2010 at 4:04 PM, jes.soren...@redhat.com wrote: From: Jes Sorensen jes.soren...@redhat.com This consolidates the duplicated oom_check() functions, as well as splitting them into OS dependant versions to avoid the #ifdef grossness

[Qemu-devel] [PATCH v3 0/9] Re-factor osdep code + macro and brace fixes

2010-10-18 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com Hi, Here is another set of patches which tries to split up osdep.c further into posix and win32 versions. It introduces oslib-{posix,win32}.c files which are used for functions that are OS specific core library functionality, like gettimeofday

[Qemu-devel] [PATCH 2/9] Move osdep socket code to oslib-{posix, win32}.c

2010-10-18 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- osdep.c | 38 -- oslib-posix.c | 15 +++ oslib-win32.c | 21 + 3 files changed, 36 insertions(+), 38 deletions

[Qemu-devel] [PATCH 1/9] Move QEMU OS dependant library functions to OS specific files

2010-10-18 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com This moves library functions used by both QEMU and the QEMU tools, such as qemu-img, qemu-nbd etc. from osdep.c to oslib-{posix,win32}.c In addition it introduces oslib-obj.y to the Makefile set to be included by the various targets, instead of relying

[Qemu-devel] [PATCH 3/9] qemu_pipe() is used only by POSIX code, so move to oslib-posix.c

2010-10-18 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- osdep.c | 22 -- oslib-posix.c | 22 ++ 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/osdep.c b/osdep.c index 902fce9..926c8ad

[Qemu-devel] Re: [PATCH 5/9] Move qemu_gettimeofday() to OS specific files

2010-10-18 Thread Jes Sorensen
On 10/16/10 21:32, Blue Swirl wrote: On Sat, Oct 16, 2010 at 4:04 PM, jes.soren...@redhat.com wrote: From: Jes Sorensen jes.soren...@redhat.com In addition add sysemu.h includes to file requiring a prototype for ffs() There are probably a lot more files which would need that: /src/qemu

[Qemu-devel] [PATCH 9/9] Remove unncessary includes

2010-10-18 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com No need to include stdlib.h for BSD as it is included by qemu-common.h, windows.h is handled by sysemu.h and osdep.c no longer needs malloc.h Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- osdep.c |8 1 files changed, 0 insertions

[Qemu-devel] [PATCH 6/9] Do not redefine reserved key-words TRUE/FALSE

2010-10-18 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com TRUE/FALSE are generally reserved keywords and shouldn't be defined in a driver like this. Rename the macros to SDP_TRUE and SDP_FALSE respectively. Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- hw/bt-sdp.c | 20 ++-- 1

[Qemu-devel] [PATCH 4/9] We only support eventfd under POSIX, move qemu_eventfd() to os-posix.c

2010-10-18 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- os-posix.c | 32 osdep.c| 34 -- 2 files changed, 32 insertions(+), 34 deletions(-) diff --git a/os-posix.c b/os-posix.c

[Qemu-devel] [PATCH 7/9] Separate qemu_pidfile() into OS specific versions

2010-10-18 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- os-posix.c | 21 + os-win32.c | 24 osdep.c| 38 -- 3 files changed, 45 insertions(+), 38 deletions

[Qemu-devel] [PATCH 5/9] Move qemu_gettimeofday() to OS specific files

2010-10-18 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- osdep.c| 31 --- osdep.h| 15 --- oslib-win32.c | 27 +++ posix-aio-compat.c |1 + qemu

[Qemu-devel] [PATCH 8/9] Consolidate oom_check() functions

2010-10-18 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com This consolidates the duplicated oom_check() functions, as well as splitting them into OS dependant versions to avoid the #ifdef grossness that was present in the old osdep.c version. Signed-off-by: Jes Sorensen jes.soren...@redhat.com

[Qemu-devel] Re: QEMU host support

2010-10-16 Thread Jes Sorensen
On 10/16/10 02:37, Paolo Bonzini wrote: On 10/15/2010 06:51 PM, Jes Sorensen wrote: Hi, Looking through some code in qemu-char.c I was wondering if we support any other QEMU host target than Win32 which isn't covered by these defines: #if defined(__linux__) || defined(__sun__) || defined

[Qemu-devel] Re: [PATCH 5/9] Move qemu_gettimeofday() to OS specific files

2010-10-16 Thread Jes Sorensen
On 10/15/10 18:39, Paolo Bonzini wrote: On 10/15/2010 04:05 PM, jes.soren...@redhat.com wrote: +typedef struct timeval qemu_timeval; +#define qemu_gettimeofday(tp) gettimeofday(tp, NULL); Argh, trailing semicolon. Please remove it or use an inline function. Good point, it is present in the

[Qemu-devel] [PATCH 2/9] Move osdep socket code to oslib-{posix, win32}.c

2010-10-16 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- osdep.c | 38 -- oslib-posix.c | 15 +++ oslib-win32.c | 21 + 3 files changed, 36 insertions(+), 38 deletions

[Qemu-devel] [PATCH v2 0/9] Re-factor osdep code + macro and brace fixes

2010-10-16 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com Hi, Here is another set of patches which tries to split up osdep.c further into posix and win32 versions. It introduces oslib-{posix,win32}.c files which are used for functions that are OS specific core library functionality, like gettimeofday

[Qemu-devel] [PATCH 1/9] Move QEMU OS dependant library functions to OS specific files

2010-10-16 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com This moves library functions used by both QEMU and the QEMU tools, such as qemu-img, qemu-nbd etc. from osdep.c to oslib-{posix,win32}.c In addition it introduces oslib-obj.y to the Makefile set to be included by the various targets, instead of relying

[Qemu-devel] [PATCH 4/9] We only support eventfd under POSIX, move qemu_eventfd() to os-posix.c

2010-10-16 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- os-posix.c | 32 osdep.c| 34 -- 2 files changed, 32 insertions(+), 34 deletions(-) diff --git a/os-posix.c b/os-posix.c

[Qemu-devel] [PATCH 5/9] Move qemu_gettimeofday() to OS specific files

2010-10-16 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com In addition add sysemu.h includes to file requiring a prototype for ffs() Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- hw/bt-sdp.c|1 + osdep.c| 31 --- osdep.h| 15

[Qemu-devel] [PATCH 7/9] Separate qemu_pidfile() into OS specific versions

2010-10-16 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- os-posix.c | 21 + os-win32.c | 24 osdep.c| 38 -- 3 files changed, 45 insertions(+), 38 deletions

[Qemu-devel] [PATCH 3/9] qemu_pipe() is used only by POSIX code, so move to oslib-posix.c

2010-10-16 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- osdep.c | 22 -- oslib-posix.c | 22 ++ 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/osdep.c b/osdep.c index 902fce9..926c8ad

[Qemu-devel] [PATCH 9/9] Remove unncessary includes

2010-10-16 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com No need to include stdlib.h for BSD as it is included by qemu-common.h, windows.h is handled by sysemu.h and osdep.c no longer needs malloc.h Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- osdep.c |8 1 files changed, 0 insertions

[Qemu-devel] [PATCH 8/9] Consolidate oom_check() functions

2010-10-16 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com This consolidates the duplicated oom_check() functions, as well as splitting them into OS dependant versions to avoid the #ifdef grossness that was present in the old osdep.c version. Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- oslib

[Qemu-devel] [PATCH 6/9] Do not redefine reserved key-words TRUE/FALSE

2010-10-16 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com TRUE/FALSE are generally reserved keywords and shouldn't be defined in a driver like this. Rename the macros to SDP_TRUE and SDP_FALSE respectively. Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- hw/bt-sdp.c | 20 ++-- 1

Re: [Qemu-devel] Re: QEMU host support

2010-10-16 Thread Jes Sorensen
On 10/16/10 11:44, Andreas Färber wrote: Am 16.10.2010 um 02:37 schrieb Paolo Bonzini: On 10/15/2010 06:51 PM, Jes Sorensen wrote: Looking through some code in qemu-char.c I was wondering if we support any other QEMU host target than Win32 which isn't covered by these defines: #if defined

[Qemu-devel] [PATCH 6/9] Do not redefine reserved key-words TRUE/FALSE

2010-10-15 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com TRUE/FALSE are generally reserved keywords and shouldn't be defined in a driver like this. Rename the macros to SDP_TRUE and SDP_FALSE respectively. Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- hw/bt-sdp.c | 20 ++-- 1

[Qemu-devel] [PATCH 7/9] Separate qemu_pidfile() into OS specific versions

2010-10-15 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- os-posix.c | 21 + os-win32.c | 24 osdep.c| 38 -- 3 files changed, 45 insertions(+), 38 deletions

[Qemu-devel] [PATCH 2/9] Move osdep socket code to os-{posix, win32}-lib.c

2010-10-15 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- os-posix-lib.c | 15 +++ os-win32-lib.c | 21 + osdep.c| 38 -- 3 files changed, 36 insertions(+), 38 deletions

<    1   2   3   4   5   6   7   8   9   >