[Qemu-devel] 进出口报关,退税代报关

2011-03-07 Thread 报关行/张先生
qemu-devel您好 一、 专业代理深圳广州各大口岸,散货仓库,深圳广州机场等买单报关。 普货买单报关 400元 〈包港建费〉 玩具买单商检报关600元 全包 包港建费〉 灯具买单商检报关 600元 全包 〈包港建费>服装/ 鞋子买单报关商检 600元 全包 〈包港建费〉 家具买单商检报关 500元 全包 〈包港建费〉 其他品名货物价格以清单确认,价格优惠~!以上价格,若是查柜,查柜费用,由我司负责。 二、代办产地证。普惠证(C

Re: [Qemu-devel] OVMF Google Summer of Code ideas

2011-03-07 Thread Stefan Hajnoczi
On Tue, Mar 8, 2011 at 12:54 AM, Jordan Justen wrote: > On Mon, Mar 7, 2011 at 01:48, Stefan Hajnoczi wrote: >> Jordan, UEFI guest firmware comes up periodically.  It seems to be a >> feature that will be required in the future but as of today I don't >> know of QEMU developers who are working on

[Qemu-devel] [PATCH v5 3/3] rtl8139: add vlan tag insertion

2011-03-07 Thread Jason Wang
Benjamin Poirier writes: > Add support to the emulated hardware to insert vlan tags in packets > going from the guest to the network. > > Signed-off-by: Benjamin Poirier > Cc: Igor V. Kovalenko > Cc: Jason Wang > Cc: Michael S. Tsirkin > Cc: Blue Swirl > --- > hw/rtl8139.c | 107

Re: [Qemu-devel] qemu 0.14. 0(ffplay no audio)

2011-03-07 Thread Mulyadi Santosa
On Tue, Mar 8, 2011 at 13:05, asim khan wrote: > Hi , >     Iam using qemu 0.14.0 and trying to  play any wav file..on console it > shows that its playing but there is no audio. > if I play the same file with aplay it gives an error"aplay: pcm_write:1603: > write error: Input/output error".so doon

[Qemu-devel] qemu 0.14. 0(ffplay no audio)

2011-03-07 Thread asim khan
Hi , Iam using qemu 0.14.0 and trying to play any wav file..on console it shows that its playing but there is no audio. if I play the same file with aplay it gives an error"*aplay: pcm_write:1603: write error: Input/output error*".so doono whats going wrong.?? with qemu 0.13.0 same wave f

Re: [Qemu-devel] [PATCH v5 10/10] softfloat: Use [u]int_fast64_t consistently

2011-03-07 Thread Aurelien Jarno
On Tue, Mar 08, 2011 at 12:10:50AM +0100, Andreas Färber wrote: > Am 07.03.2011 um 10:56 schrieb Aurelien Jarno: > > >On Mon, Mar 07, 2011 at 01:34:13AM +0100, Andreas Färber wrote: > >>v5: > >>* Initial. > >> > >>Signed-off-by: Andreas Färber > >>--- > >>fpu/softfloat-native.c | 26 +++

[Qemu-devel] Improving QEMU memcpy performance

2011-03-07 Thread Gunasekaran Dharman
Hi Iam using QEMU emulated ARM Realview board with Linux as guest OS for my application development. This virtual machine is running on x86 Linux host. My application is facing performance issue as memcpy in guest machine is taking lot of time compared to the same memcpy in host machine. To improv

Re: [Qemu-devel] Re: [V7 PATCH 3/9] virtio-9p: Provide chroot worker side interfaces

2011-03-07 Thread Venkateswararao Jujjuri (JV)
On 3/4/2011 2:53 AM, Stefan Hajnoczi wrote: > On Fri, Mar 4, 2011 at 9:25 AM, M. Mohan Kumar wrote: >> +static int chroot_do_open(V9fsFileObjectRequest *request) >> +{ >> +int fd; >> +fd = open(request->path.path, request->data.flags); >> +if (fd < 0) { >> +fd = -errno; >> +

[Qemu-devel] [PATCH v5 2/3] rtl8139: add vlan tag extraction

2011-03-07 Thread Jason Wang
Benjamin Poirier writes: > Add support to the emulated hardware to extract vlan tags in packets > going from the network to the guest. > > Signed-off-by: Benjamin Poirier > Cc: Igor V. Kovalenko > Cc: Jason Wang > Cc: Michael S. Tsirkin > Cc: Blue Swirl > > -- > > AFAIK, extract

Re: [Qemu-devel] OVMF Google Summer of Code ideas

2011-03-07 Thread Jordan Justen
On Mon, Mar 7, 2011 at 01:48, Stefan Hajnoczi wrote: > Jordan, UEFI guest firmware comes up periodically.  It seems to be a > feature that will be required in the future but as of today I don't > know of QEMU developers who are working on or using it. > > Maybe you can start by giving an update on

[Qemu-devel] Re: [RFC][PATCH v7 00/16] virtagent: host/guest communication agent

2011-03-07 Thread Anthony Liguori
On 03/07/2011 06:11 PM, Michael Roth wrote: On 03/07/2011 04:56 PM, Anthony Liguori wrote: On 03/07/2011 04:49 PM, Michael Roth wrote: It's not really inventing anything. We've always started off with qobject params, which we then pulled apart and stuck into xmlrpc params, which when then turne

[Qemu-devel] Re: [RFC][PATCH v7 00/16] virtagent: host/guest communication agent

2011-03-07 Thread Michael Roth
On 03/07/2011 04:56 PM, Anthony Liguori wrote: On 03/07/2011 04:49 PM, Michael Roth wrote: It's not really inventing anything. We've always started off with qobject params, which we then pulled apart and stuck into xmlrpc params, which when then turned into xml for transport. Now we just take th

Re: [Qemu-devel] Re: KVM call agenda for Mars 8th

2011-03-07 Thread Anthony Liguori
On 03/07/2011 01:12 PM, Anthony Liguori wrote: On 03/07/2011 10:18 AM, Juan Quintela wrote: Please send in any agenda items you are interested in covering. - QAPI merge plan - virt-agent support in QAPI I'll write up a proposal on the wiki. Regards, Anthony Liguori Regards, Anthony Li

Re: [Qemu-devel] [PATCH v5 04/10] softfloat: Drop [u]int16 types in favor of [u]int_fast16_t

2011-03-07 Thread Aurelien Jarno
On Mon, Mar 07, 2011 at 11:14:11PM +, Peter Maydell wrote: > On 7 March 2011 09:56, Aurelien Jarno wrote: > > On Mon, Mar 07, 2011 at 01:34:07AM +0100, Andreas Färber wrote: > >> AIX already didn't use our definition, so let's start ripping out this one: > >> As pointed out by Peter Maydell, i

[Qemu-devel] Re: [RFC][PATCH v7 04/16] virtagent: bi-directional RPC handling logic

2011-03-07 Thread Michael Roth
On 03/07/2011 03:24 PM, Adam Litke wrote: On Mon, 2011-03-07 at 14:10 -0600, Michael Roth wrote: This implements the state machine/logic used to manage send/receive/execute phases of RPCs we send or receive. It does so using a set of abstract methods we implement with the application and transpo

Re: [Qemu-devel] [PATCH v5 07/10] softfloat: Drop [u]int32 types in favor of [u]int_fast32_t

2011-03-07 Thread Aurelien Jarno
On Tue, Mar 08, 2011 at 12:16:49AM +0100, Andreas Färber wrote: > Am 07.03.2011 um 10:56 schrieb Aurelien Jarno: > > >On Mon, Mar 07, 2011 at 01:34:10AM +0100, Andreas Färber wrote: > >>v5: > >>* Initial. > >> > >>Cc: Peter Maydell > >>Signed-off-by: Andreas Färber > >>--- > >>fpu/softfloat.c |

[Qemu-devel] Re: [RFC][PATCH v7 00/16] virtagent: host/guest communication agent

2011-03-07 Thread Michael Roth
On 03/07/2011 03:43 PM, Anthony Liguori wrote: On 03/07/2011 02:10 PM, Michael Roth wrote: These patches apply to master (3-07-2011), and can also be obtained from: git://repo.or.cz/qemu/mdroth.git virtagent_v7 CHANGES IN V7: - Removed dependency on xmlrpc-c for data transport. Now using JSON

Re: [Qemu-devel] [PATCH v5 04/10] softfloat: Drop [u]int16 types in favor of [u]int_fast16_t

2011-03-07 Thread Aurelien Jarno
On Tue, Mar 08, 2011 at 12:02:39AM +0100, Andreas Färber wrote: > Am 07.03.2011 um 10:56 schrieb Aurelien Jarno: > > >On Mon, Mar 07, 2011 at 01:34:07AM +0100, Andreas Färber wrote: > >>AIX already didn't use our definition, so let's start ripping > >>out this one: > >>As pointed out by Peter Mayd

Re: [Qemu-devel] [PATCH v5 10/10] softfloat: Use [u]int_fast64_t consistently

2011-03-07 Thread Andreas Färber
Am 07.03.2011 um 10:56 schrieb Aurelien Jarno: On Mon, Mar 07, 2011 at 01:34:13AM +0100, Andreas Färber wrote: v5: * Initial. Signed-off-by: Andreas Färber --- fpu/softfloat-native.c | 26 +- fpu/softfloat-native.h | 28 ++-- fpu/softfloat.c

[Qemu-devel] [PATCH v5 2/3] rtl8139: add vlan tag extraction

2011-03-07 Thread Benjamin Poirier
Add support to the emulated hardware to extract vlan tags in packets going from the network to the guest. Signed-off-by: Benjamin Poirier Cc: Igor V. Kovalenko Cc: Jason Wang Cc: Michael S. Tsirkin Cc: Blue Swirl -- AFAIK, extraction is optional to get vlans working. The driver requests rx

Re: [Qemu-devel] [PATCH v5 04/10] softfloat: Drop [u]int16 types in favor of [u]int_fast16_t

2011-03-07 Thread Peter Maydell
On 7 March 2011 09:56, Aurelien Jarno wrote: > On Mon, Mar 07, 2011 at 01:34:07AM +0100, Andreas Färber wrote: >> AIX already didn't use our definition, so let's start ripping out this one: >> As pointed out by Peter Maydell, int16 is currently int on most >> supported platforms, so let's replace

Re: [Qemu-devel] [PATCH v5 07/10] softfloat: Drop [u]int32 types in favor of [u]int_fast32_t

2011-03-07 Thread Andreas Färber
Am 07.03.2011 um 10:56 schrieb Aurelien Jarno: On Mon, Mar 07, 2011 at 01:34:10AM +0100, Andreas Färber wrote: v5: * Initial. Cc: Peter Maydell Signed-off-by: Andreas Färber --- fpu/softfloat.c | 132 ++ +--- fpu/softfloat.h | 34 +++---

[Qemu-devel] [PATCH v5 3/3] rtl8139: add vlan tag insertion

2011-03-07 Thread Benjamin Poirier
Add support to the emulated hardware to insert vlan tags in packets going from the guest to the network. Signed-off-by: Benjamin Poirier Cc: Igor V. Kovalenko Cc: Jason Wang Cc: Michael S. Tsirkin Cc: Blue Swirl --- hw/rtl8139.c | 107 ++--

[Qemu-devel] [PATCH v5 1/3] rtl8139: cleanup FCS calculation

2011-03-07 Thread Benjamin Poirier
clean out ifdef's around ethernet checksum calculation Signed-off-by: Benjamin Poirier Cc: Igor V. Kovalenko Cc: Jason Wang Cc: Michael S. Tsirkin Cc: Blue Swirl --- hw/rtl8139.c | 20 +++- 1 files changed, 3 insertions(+), 17 deletions(-) diff --git a/hw/rtl8139.c b/hw/rt

Re: [Qemu-devel] [PATCH v5 04/10] softfloat: Drop [u]int16 types in favor of [u]int_fast16_t

2011-03-07 Thread Andreas Färber
Am 07.03.2011 um 10:56 schrieb Aurelien Jarno: On Mon, Mar 07, 2011 at 01:34:07AM +0100, Andreas Färber wrote: AIX already didn't use our definition, so let's start ripping out this one: As pointed out by Peter Maydell, int16 is currently int on most supported platforms, so let's replace it w

[Qemu-devel] Re: [RFC][PATCH v7 00/16] virtagent: host/guest communication agent

2011-03-07 Thread Anthony Liguori
On 03/07/2011 04:49 PM, Michael Roth wrote: It's not really inventing anything. We've always started off with qobject params, which we then pulled apart and stuck into xmlrpc params, which when then turned into xml for transport. Now we just take the qobjects and covert them to json directly. W

[Qemu-devel] [PATCH 09/14] lm32: add Milkymist TMU2 support

2011-03-07 Thread Michael Walle
This patch adds support for Milkymist's texture mapping unit. For fast computation this model needs hardware accelerated 3D graphics support (OpenGL). There is no graphical output, all computations belong to internal framebuffers only. Signed-off-by: Michael Walle --- Makefile.target |1

[Qemu-devel] [PATCH v5] rtl8139: add vlan support

2011-03-07 Thread Benjamin Poirier
Here is version 5 of my patchset to add vlan support to the emulated rtl8139 nic. Changes since v4: * removed alloca(), for real. Thanks to the reviewers for their patience. This patchset now has more versions than the vlan header has bytes! * corrected the unli

[Qemu-devel] [PATCH 05/14] lm32: add Milkymist PFPU support

2011-03-07 Thread Michael Walle
This patch adds support for Milkymist's Programmable FPU. Signed-off-by: Michael Walle --- Makefile.target |1 + hw/milkymist-pfpu.c | 536 +++ trace-events|6 + 3 files changed, 543 insertions(+), 0 deletions(-) create mode 1

[Qemu-devel] [PATCH 07/14] lm32: add Milkymist System Controller support

2011-03-07 Thread Michael Walle
This patch adds support for Milkymist's System Controller core. The model has the following features: - support for shutting down and restarting the board - provide two timers and GPIO - provide registers for system identification and reading the boards capabilities Signed-off-by: Michael Wa

[Qemu-devel] [PATCH 08/14] configure: add opengl detection

2011-03-07 Thread Michael Walle
This patch introduce a new config option CONFIG_OPENGL. Signed-off-by: Michael Walle --- configure | 33 + 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/configure b/configure index e75e1a2..fe8791d 100755 --- a/configure +++ b/configure @@ -130

[Qemu-devel] [PATCH 14/14] MAINTAINERS: add Milkymist board

2011-03-07 Thread Michael Walle
Signed-off-by: Michael Walle --- MAINTAINERS |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 9f3ff0e..e6f853d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -214,6 +214,11 @@ M: Michael Walle S: Maintained F: hw/lm32_boards.c +milky

[Qemu-devel] [PATCH 12/14] lm32: add milkymist hw support functions

2011-03-07 Thread Michael Walle
This patch adds wrappers for easy creation of the qdev devices. Signed-off-by: Michael Walle --- hw/milkymist-hw.h | 204 + 1 files changed, 204 insertions(+), 0 deletions(-) create mode 100644 hw/milkymist-hw.h diff --git a/hw/milkymist-hw.

[Qemu-devel] [PATCH 03/14] lm32: add Milkymist memory card support

2011-03-07 Thread Michael Walle
This patch adds support for Milkymist's memory card core. Signed-off-by: Michael Walle --- Makefile.target |1 + default-configs/lm32-softmmu.mak |1 + hw/milkymist-memcard.c | 294 ++ trace-events |8

[Qemu-devel] [PATCH 13/14] lm32: add support for the Milkymist board

2011-03-07 Thread Michael Walle
This patch adds almost complete support for the Milkymist system-on-chip (http://www.milkymist.org). Additional to running bare metal applications, booting a linux kernel with initrd is supported. Signed-off-by: Michael Walle --- Makefile.target |1 + default-configs/lm32-s

[Qemu-devel] [PATCH 11/14] lm32: add Milkymist VGAFB support

2011-03-07 Thread Michael Walle
This patch adds support for Milkymist's VGA framebuffer. Signed-off-by: Michael Walle --- Makefile.target |2 + hw/milkymist-vgafb.c | 318 + hw/milkymist-vgafb_template.h | 74 ++ trace-events |4

[Qemu-devel] [PATCH 04/14] lm32: add Milkymist Minimac support

2011-03-07 Thread Michael Walle
This patch adds support for Milkymist's minimal Ethernet MAC. Signed-off-by: Michael Walle --- Makefile.target|1 + hw/milkymist-minimac.c | 568 trace-events | 12 + 3 files changed, 581 insertions(+), 0 deletions(-) cre

[Qemu-devel] [PATCH 10/14] lm32: add Milkymist UART support

2011-03-07 Thread Michael Walle
This patch adds support for Milkymist's simple UART. Signed-off-by: Michael Walle --- Makefile.target |1 + hw/milkymist-uart.c | 180 +++ trace-events|6 ++ 3 files changed, 187 insertions(+), 0 deletions(-) create mode 10064

[Qemu-devel] [PATCH 02/14] lm32: add Milkymist HPDMC support

2011-03-07 Thread Michael Walle
This patch adds support for the Milkymist's High Performance Dynamic Memory Controller. This is just a dumb model without any functionality. While the real hardware acts for example as a bridge between software and hardware for sending SDRAM commans, this model will only eat up these commands and a

[Qemu-devel] [PATCH 06/14] lm32: add Milkymist SoftUSB support

2011-03-07 Thread Michael Walle
This patch adds support for Milkymist's SoftUSB core. This model differ from the real hardware in its functionality. The real hardware consits of a tiny freely programmable microcontroller which controls the USB ports. For simplicity reasons, this model emulates only keyboard and mouse input device

[Qemu-devel] [PATCH 01/14] lm32: add Milkymist AC97 support

2011-03-07 Thread Michael Walle
This patch adds support for the Milkymist AC97 compatible sound output and input core. Signed-off-by: Michael Walle --- Makefile.target |1 + configure |3 + hw/milkymist-ac97.c | 335 +++ trace-events| 12 ++ 4 fil

[Qemu-devel] [PATCH 00/14] lm32: Milkymist board support

2011-03-07 Thread Michael Walle
This is the second (and last) patchset of the LatticeMico32 support. It adds almost complete support for the opensource and openhardware Milkymist One board [1]. [1] http://www.milkymist.org/mmone.html

[Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-03-07 Thread Paolo Bonzini
On 03/07/2011 05:13 PM, Marcelo Tosatti wrote: Is write access to memory map necessary from vcpu context? At least in x86 world SMM is entered from vcpu context, so I guess yes. Paolo

[Qemu-devel] [PATCH] lm32: use lookup table for opcodes

2011-03-07 Thread Michael Walle
Instead of a for loop use a faster lookup table. Signed-off-by: Michael Walle --- target-lm32/lm32-decode.h | 78 --- target-lm32/translate.c | 80 ++-- 2 files changed, 18 insertions(+), 140 deletions(-) dele

Re: [Qemu-devel] [PATCH 00/22] QAPI Round 1

2011-03-07 Thread Stefan Hajnoczi
On Mon, Mar 7, 2011 at 8:59 PM, Anthony Liguori wrote: > On 03/07/2011 09:08 AM, Stefan Hajnoczi wrote: >> >> The signals and slots magic makes sense when looking at the patches, >> but I wasn't confident about their semantics just by reading the >> documentation.  I had a vague idea about why the

[Qemu-devel] [PATCH] lm32: rename raise opcode to scall

2011-03-07 Thread Michael Walle
To be consistent with the new reference manual. Signed-off-by: Michael Walle --- target-lm32/lm32-decode.h |2 +- target-lm32/translate.c |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-lm32/lm32-decode.h b/target-lm32/lm32-decode.h index f745b39..42205d9

[Qemu-devel] Re: [RFC][PATCH v7 00/16] virtagent: host/guest communication agent

2011-03-07 Thread Anthony Liguori
On 03/07/2011 02:10 PM, Michael Roth wrote: These patches apply to master (3-07-2011), and can also be obtained from: git://repo.or.cz/qemu/mdroth.git virtagent_v7 CHANGES IN V7: - Removed dependency on xmlrpc-c for data transport. Now using JSON via QEMU's qjson qobject<->json conversion ro

[Qemu-devel] Re: [RFC][PATCH v7 06/16] virtagent: transport definitions

2011-03-07 Thread Adam Litke
On Mon, 2011-03-07 at 14:10 -0600, Michael Roth wrote: > +#define VA_LINE_LEN_MAX 1024 > +static void va_rpc_parse_hdr(VAHTState *s) > +{ > +int i, line_pos = 0; > +bool first_line = true; > +char line_buf[VA_LINE_LEN_MAX]; > + > +TRACE("called"); > + > +for (i = 0; i < VA_HDR_L

[Qemu-devel] Re: [RFC][PATCH v7 04/16] virtagent: bi-directional RPC handling logic

2011-03-07 Thread Adam Litke
On Mon, 2011-03-07 at 14:10 -0600, Michael Roth wrote: > This implements the state machine/logic used to manage > send/receive/execute phases of RPCs we send or receive. It does so using > a set of abstract methods we implement with the application and > transport level code which will follow. > >

Re: [Qemu-devel] [PATCH 00/22] QAPI Round 1

2011-03-07 Thread Anthony Liguori
On 03/07/2011 09:08 AM, Stefan Hajnoczi wrote: The signals and slots magic makes sense when looking at the patches, but I wasn't confident about their semantics just by reading the documentation. I had a vague idea about why the Event struct is needed but didn't fully understand. Perhaps it's j

[Qemu-devel] [RFC][PATCH v7 00/16] virtagent: host/guest communication agent

2011-03-07 Thread Michael Roth
These patches apply to master (3-07-2011), and can also be obtained from: git://repo.or.cz/qemu/mdroth.git virtagent_v7 CHANGES IN V7: - Removed dependency on xmlrpc-c for data transport. Now using JSON via QEMU's qjson qobject<->json conversion routines. Binary encoding mechanisms such as Pro

[Qemu-devel] [RFC][PATCH v7 03/16] Make qemu timers available for tools

2011-03-07 Thread Michael Roth
To be able to use qemu_mod_timer() and friends to register timeout events for virtagent's qemu-va tool, we need to do the following: Move several blocks of code out of cpus.c that handle initialization of qemu's io_thread_fd and working with it via qemu_notify_event()/qemu_event_read()/etc, and ma

[Qemu-devel] [RFC][PATCH v7 05/16] virtagent: common helpers and init routines

2011-03-07 Thread Michael Roth
Signed-off-by: Michael Roth --- virtagent-common.c | 206 virtagent-common.h | 95 2 files changed, 301 insertions(+), 0 deletions(-) create mode 100644 virtagent-common.c create mode 100644 virtagent-common.h di

[Qemu-devel] [RFC][PATCH v7 04/16] virtagent: bi-directional RPC handling logic

2011-03-07 Thread Michael Roth
This implements the state machine/logic used to manage send/receive/execute phases of RPCs we send or receive. It does so using a set of abstract methods we implement with the application and transport level code which will follow. Signed-off-by: Michael Roth --- virtagent-manager.c | 326 +

[Qemu-devel] [RFC][PATCH v7 08/16] virtagnet: base RPC server definitions

2011-03-07 Thread Michael Roth
Signed-off-by: Michael Roth --- virtagent-server.c | 313 virtagent-server.h | 40 +++ 2 files changed, 353 insertions(+), 0 deletions(-) create mode 100644 virtagent-server.c create mode 100644 virtagent-server.h diff --git a/virtag

[Qemu-devel] [RFC][PATCH v7 12/16] virtagent: add "shutdown" RPC to server

2011-03-07 Thread Michael Roth
Signed-off-by: Michael Roth --- virtagent-server.c | 58 1 files changed, 58 insertions(+), 0 deletions(-) diff --git a/virtagent-server.c b/virtagent-server.c index b0fc0c4..3c8c805 100644 --- a/virtagent-server.c +++ b/virtagent-server.c

[Qemu-devel] [RFC][PATCH v7 16/16] virtagent: add bits to build virtagent host/guest components

2011-03-07 Thread Michael Roth
Signed-off-by: Michael Roth --- Makefile|4 +++- Makefile.target |2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index eca4c76..46f5730 100644 --- a/Makefile +++ b/Makefile @@ -151,7 +151,7 @@ version-obj-$(CONFIG_WIN32) += version.o ###

[Qemu-devel] [RFC][PATCH v7 15/16] virtagent: qemu-va, system-level virtagent guest agent

2011-03-07 Thread Michael Roth
Signed-off-by: Michael Roth --- qemu-va.c | 247 + 1 files changed, 247 insertions(+), 0 deletions(-) create mode 100644 qemu-va.c diff --git a/qemu-va.c b/qemu-va.c new file mode 100644 index 000..a9ff56f --- /dev/null +++ b/qem

[Qemu-devel] [RFC][PATCH v7 13/16] virtagent: add va_shutdown HMP/QMP command

2011-03-07 Thread Michael Roth
Signed-off-by: Michael Roth --- hmp-commands.hx | 16 qmp-commands.hx | 32 virtagent.c | 24 virtagent.h |2 ++ 4 files changed, 74 insertions(+), 0 deletions(-) diff --git a/hmp-commands.hx b/hmp-comm

[Qemu-devel] [RFC][PATCH v7 07/16] virtagent: base RPC client definitions

2011-03-07 Thread Michael Roth
Signed-off-by: Michael Roth --- monitor.c |1 + qerror.c|8 + qerror.h|6 + virtagent.c | 455 +++ virtagent.h | 46 ++ 5 files changed, 516 insertions(+), 0 deletions(-) create mode 100644 virtagent.c create

[Qemu-devel] [RFC][PATCH v7 11/16] virtagent: add va_ping HMP/QMP command

2011-03-07 Thread Michael Roth
Signed-off-by: Michael Roth --- hmp-commands.hx | 16 qmp-commands.hx | 32 virtagent.c | 45 + virtagent.h |3 +++ 4 files changed, 96 insertions(+), 0 deletions(-) diff --git a/hmp-

[Qemu-devel] [RFC][PATCH v7 01/16] Move code related to fd handlers into utility functions

2011-03-07 Thread Michael Roth
This allows us to implement an i/o loop outside of vl.c that can interact with objects that use qemu_set_fd_handler() Signed-off-by: Michael Roth --- Makefile.objs |2 +- qemu-char.h |4 ++ qemu-ioh.c| 115 + qemu-ioh.h|

[Qemu-devel] [RFC][PATCH v7 02/16] Add qemu_set_fd_handler() wrappers to qemu-tools.c

2011-03-07 Thread Michael Roth
This adds state information for managing fd handlers to qemu-tools.c so that tools that build against it can implement an I/O loop for interacting with objects that use qemu_set_fd_handler() Signed-off-by: Michael Roth --- qemu-tool.c | 25 - 1 files changed, 24 inserti

[Qemu-devel] [RFC][PATCH v7 14/16] virtagent: add virtagent chardev

2011-03-07 Thread Michael Roth
Signed-off-by: Michael Roth --- qemu-char.c | 44 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index bd4e944..ffdcadb 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2458,6 +2458,49 @@ fail: return NU

[Qemu-devel] [RFC][PATCH v7 06/16] virtagent: transport definitions

2011-03-07 Thread Michael Roth
This implements an HTTP-like transport for sending UTF-8 encoded RPC requests/responses over the isa/virtio serial channel. Signed-off-by: Michael Roth --- virtagent-transport.c | 432 + 1 files changed, 432 insertions(+), 0 deletions(-) create m

[Qemu-devel] [RFC][PATCH v7 10/16] virtagent: add "ping" RPC to server

2011-03-07 Thread Michael Roth
Signed-off-by: Michael Roth --- virtagent-server.c | 16 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/virtagent-server.c b/virtagent-server.c index f84546b..b0fc0c4 100644 --- a/virtagent-server.c +++ b/virtagent-server.c @@ -101,15 +101,31 @@ static QDict *

[Qemu-devel] [RFC][PATCH v7 09/16] virtagent: add va_capabilities HMP/QMP command

2011-03-07 Thread Michael Roth
Signed-off-by: Michael Roth --- hmp-commands.hx | 16 qmp-commands.hx | 33 + 2 files changed, 49 insertions(+), 0 deletions(-) diff --git a/hmp-commands.hx b/hmp-commands.hx index 372bef4..86817e2 100644 --- a/hmp-commands.hx +++ b/hmp-comma

[Qemu-devel] [PATCH v2] e1000: Fix multi-descriptor packet checksum offload

2011-03-07 Thread Stefan Hajnoczi
The PCI/PCI-X Family of Gigabit Ethernet Controllers Software Developer’s Manual states the following about the POPTS field: Provides a number of options which control the handling of this packet. This field is ignored except on the first data descriptor of a packet. The current implementa

[Qemu-devel] [PATCH] xen: Add grant reference support to framebuffer/input

2011-03-07 Thread Daniel De Graaf
Request and support using grant references in backends for the keyboard and framebuffer. Signed-off-by: Daniel De Graaf --- hw/xenfb.c | 103 1 files changed, 76 insertions(+), 27 deletions(-) diff --git a/hw/xenfb.c b/hw/xenfb.c ind

[Qemu-devel] [Bug 657006] Re: arm v7M - svc insn doesn't trigger PendSV handler

2011-03-07 Thread jb
Issue "solved". In freeRtos, for the first "context switch" (launch the first task), the register pc is written with an adress with le bit0 equal to 1 (thumb). If I change this and set bit0 to 0 (new_pc = task_to_start_pointer & 0xfffe), it is working well. I do not know yet (i will try next w

[Qemu-devel] Re: KVM call agenda for Mars 8th

2011-03-07 Thread Anthony Liguori
On 03/07/2011 10:18 AM, Juan Quintela wrote: Please send in any agenda items you are interested in covering. - QAPI merge plan Regards, Anthony Liguori Thanks, Juan. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vger.kernel.org More

[Qemu-devel] [Bug 638955] Re: emulated netcards don't work with recent sunos kernel

2011-03-07 Thread geppz
Stefan, thanks for your work. I tested your patch in comment #29 and it does seem to solve the problem for me for latest openindiana and also for latest nexenta core. Also I checked vanilla rtl8139 and it seems to work for openindiana on qemu-kvm-0.14.0 (with 0.13.0 I think I had problems). Than

Re: [Qemu-devel] Re: EFI console stopped working in Qemu 0.14.0

2011-03-07 Thread vagran
Yes, you are right, identity_base is 0xfffbc000 in my case and KVM_CAP_SET_IDENTITY_MAP_ADDR is not defined. So, as I understand, the problem is that BIOS size is too large and I have too old KVM module. Also I'm not sure if I can use KVM on 32-bit host for emulating 64-bit guests. Best regards,

Re: [Qemu-devel] [PATCH v3] Improve error handling in do_snapshot_blkdev()

2011-03-07 Thread Anthony Liguori
On 03/07/2011 10:39 AM, Jes Sorensen wrote: On 03/07/11 17:34, Anthony Liguori wrote: On 03/07/2011 09:27 AM, jes.soren...@redhat.com wrote: if (ret != 0) { -abort(); +qerror_report(QERR_OPEN_FILE_FAILED, filename); +error_printf("do_snapshot_blkdev(): Unable to o

[Qemu-devel] Replacing guest memcpy with host memcpy

2011-03-07 Thread guna spam
Hi Iam using QEMU emulated ARM Realview board with Linux as guest OS for my application development. This virtual machine is running on x86 Linux host. My application is facing performance issue as memcpy in guest machine is taking lot of time compared to the same memcpy in host machine. To improv

Re: [Qemu-devel] [PATCH v3] Improve error handling in do_snapshot_blkdev()

2011-03-07 Thread Jes Sorensen
On 03/07/11 17:34, Anthony Liguori wrote: > On 03/07/2011 09:27 AM, jes.soren...@redhat.com wrote: >> if (ret != 0) { >> -abort(); >> +qerror_report(QERR_OPEN_FILE_FAILED, filename); >> +error_printf("do_snapshot_blkdev(): Unable to open newly >> created " >> +

Re: [Qemu-devel] [PATCH v3] Improve error handling in do_snapshot_blkdev()

2011-03-07 Thread Anthony Liguori
On 03/07/2011 09:27 AM, jes.soren...@redhat.com wrote: From: Jes Sorensen In case we cannot open the newly created snapshot image, try to fall back to the original image file and continue running on that, which should prevent the guest from aborting. This is a corner case which can happen if th

Re: [Qemu-devel] [PATCH v2] Don't allow multiwrites against a block device without underlying medium

2011-03-07 Thread Stefan Hajnoczi
On Mon, Mar 7, 2011 at 4:01 PM, Ryan Harper wrote: > If the block device has been closed, we no longer have a medium to submit > IO against, check for this before submitting io.  This prevents a segfault > further in the code where we dereference elements of the block driver. > > Signed-off-by: Ry

Re: [Qemu-devel] [PATCH v2] Don't allow multiwrites against a block device without underlying medium

2011-03-07 Thread Stefan Hajnoczi
I meant: Reviewed-by: Stefan Hajnoczi

[Qemu-devel] Qemu 0.9.1

2011-03-07 Thread Marco Cianfriglia
Hi to alll, I'm a student of University Rome Sapienza. I'm working with qemu 0.9.1 for my thesis and I'm trying to understand how a full-emulation (qemu without kvm or kqemu) Virtual Machine works at low level. I studied your smart source code but I don't understand how qemu manages emul

[Qemu-devel] Re: [PATCH v3 1/2] hw/arm_sysctl.c: Add the Versatile Express system registers

2011-03-07 Thread Juan Quintela
Peter Maydell wrote: > Add support for the Versatile Express SYS_CFG registers, which provide > a generic means of reading or writing configuration information from > various parts of the board. We only implement shutdown and reset. > > Also make the RESETCTL register RAZ/WI on Versatile Express r

[Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-03-07 Thread Marcelo Tosatti
On Sun, Mar 06, 2011 at 12:30:59PM +0200, Alon Levy wrote: > On Sat, Mar 05, 2011 at 01:35:58PM -0300, Marcelo Tosatti wrote: > > On Sat, Feb 26, 2011 at 01:29:01PM +0100, Jan Kiszka wrote: > > > > at > > > > /var/tmp/portage/app-emulation/qemu-kvm-0.14.0/work/qemu-kvm-0.14.0/qemu-kvm.c:1466 >

[Qemu-devel] Re: kvm crashes with spice while loading qxl

2011-03-07 Thread Marcelo Tosatti
On Sun, Mar 06, 2011 at 12:38:44PM +0200, Avi Kivity wrote: > On 03/05/2011 06:35 PM, Marcelo Tosatti wrote: > >Regarding global mutex, TCG and KVM execution behaviour can become more > >similar wrt locking by dropping qemu_global_mutex during generation and > >execution of TBs. > > How can you do

[Qemu-devel] [PATCH v2] Don't allow multiwrites against a block device without underlying medium

2011-03-07 Thread Ryan Harper
If the block device has been closed, we no longer have a medium to submit IO against, check for this before submitting io. This prevents a segfault further in the code where we dereference elements of the block driver. Signed-off-by: Ryan Harper --- v1->v2: - move bs->drv check to top of fun

[Qemu-devel] [PATCH v2] Do not delete BlockDriverState when deleting the drive

2011-03-07 Thread Ryan Harper
When removing a drive from the host-side via drive_del we currently have the following path: drive_del qemu_aio_flush() bdrv_close() drive_uninit() bdrv_delete() When we bdrv_delete() we end up qemu_free() the BlockDriverState pointer however, the block devices retain a copy of this pointer, see

Re: [Qemu-devel] [PATCH 00/22] QAPI Round 1

2011-03-07 Thread Anthony Liguori
On 03/07/2011 09:08 AM, Stefan Hajnoczi wrote: On Mon, Mar 7, 2011 at 1:22 AM, Anthony Liguori wrote: More information about QAPI can be found on the wiki: http://wiki.qemu.org/Features/QAPI Thanks for the good documentation. A few thoughts: A "Naming Conventions" section would be a helpful

[Qemu-devel] Re: [PATCH 4/4] i8254: convert to qdev

2011-03-07 Thread Jan Kiszka
On 2011-03-07 15:57, Anthony Liguori wrote: > On 03/07/2011 01:58 AM, Jan Kiszka wrote: >> On 2011-03-07 01:32, Anthony Liguori wrote: >> >>> On 03/06/2011 03:18 PM, Jan Kiszka wrote: >>> > It's far from academic as this is user-visible and visible via the > command line. >

[Qemu-devel] Re: [PATCH v3] Improve error handling in do_snapshot_blkdev()

2011-03-07 Thread Kevin Wolf
Am 07.03.2011 16:27, schrieb jes.soren...@redhat.com: > From: Jes Sorensen > > In case we cannot open the newly created snapshot image, try to fall > back to the original image file and continue running on that, which > should prevent the guest from aborting. > > This is a corner case which can

Re: [Qemu-devel] Re: [PATCH v2] Improve error handling in do_snapshot_blkdev()

2011-03-07 Thread Kevin Wolf
Am 07.03.2011 16:24, schrieb Jes Sorensen: > On 03/07/11 11:01, Kevin Wolf wrote: >> Am 03.03.2011 14:13, schrieb jes.soren...@redhat.com: >>> @@ -591,6 +592,12 @@ int do_snapshot_blkdev(Monitor *mon, const QDict >>> *qdict, QObject **ret_data) >>> goto out; >>> } >>> >>> +strn

[Qemu-devel] [PATCH v3] Improve error handling in do_snapshot_blkdev()

2011-03-07 Thread Jes . Sorensen
From: Jes Sorensen In case we cannot open the newly created snapshot image, try to fall back to the original image file and continue running on that, which should prevent the guest from aborting. This is a corner case which can happen if the admin by mistake specifies the snapshot file on a virt

[Qemu-devel] Re: [PATCH v2] Improve error handling in do_snapshot_blkdev()

2011-03-07 Thread Jes Sorensen
On 03/07/11 11:01, Kevin Wolf wrote: > Am 03.03.2011 14:13, schrieb jes.soren...@redhat.com: >> @@ -591,6 +592,12 @@ int do_snapshot_blkdev(Monitor *mon, const QDict >> *qdict, QObject **ret_data) >> goto out; >> } >> >> +strncpy(old_filename, bs->filename, sizeof(old_filename)

Re: [Qemu-devel] [PATCH 00/22] QAPI Round 1

2011-03-07 Thread Stefan Hajnoczi
On Mon, Mar 7, 2011 at 1:22 AM, Anthony Liguori wrote: > More information about QAPI can be found on the wiki: > > http://wiki.qemu.org/Features/QAPI Thanks for the good documentation. A few thoughts: A "Naming Conventions" section would be a helpful summary of the different entities that .json

[Qemu-devel] Re: [PATCH 4/4] i8254: convert to qdev

2011-03-07 Thread Anthony Liguori
On 03/07/2011 01:58 AM, Jan Kiszka wrote: On 2011-03-07 01:32, Anthony Liguori wrote: On 03/06/2011 03:18 PM, Jan Kiszka wrote: It's far from academic as this is user-visible and visible via the command line. I thought it was stated before that there is no guarantee on the

Re: [Qemu-devel] [PATCH 11/22] qapi: add signal support to core QMP server

2011-03-07 Thread Anthony Liguori
On 03/07/2011 08:36 AM, Stefan Hajnoczi wrote: Technically void (*)() is an obsolete type in standard C. I can switch to void (*)(void) but it requires casting and requires a typeof() :-/ You're right, void (*)(void) is the proper form for a general function pointer. I think doing this

Re: [Qemu-devel] [PATCH 13/22] qapi: add code generators for QMP command marshaling

2011-03-07 Thread Stefan Hajnoczi
On Mon, Mar 7, 2011 at 1:44 PM, Anthony Liguori wrote: > On 03/07/2011 07:27 AM, Stefan Hajnoczi wrote: >> >> On Mon, Mar 7, 2011 at 1:22 AM, Anthony Liguori >>  wrote: >> >>> >>> +def print_definition(name, required, optional, retval): >>> >> >> This function is pretty long.  Is there a logical w

Re: [Qemu-devel] [PATCH 11/22] qapi: add signal support to core QMP server

2011-03-07 Thread Stefan Hajnoczi
On Mon, Mar 7, 2011 at 1:53 PM, Anthony Liguori wrote: > On 03/07/2011 07:21 AM, Stefan Hajnoczi wrote: >> >> On Mon, Mar 7, 2011 at 1:22 AM, Anthony Liguori >>  wrote: >> >>> >>> diff --git a/qmp-core.h b/qmp-core.h >>> index e3235ec..5ce02f7 100644 >>> --- a/qmp-core.h >>> +++ b/qmp-core.h >>> @

Re: [Qemu-devel] [PATCH 03/22] qapi: add Error object

2011-03-07 Thread Anthony Liguori
On 03/07/2011 05:06 AM, Daniel P. Berrange wrote: On Sun, Mar 06, 2011 at 07:22:45PM -0600, Anthony Liguori wrote: The Error class is similar to QError (now deprecated) except that it supports propagation. This allows for higher quality error handling. It's losely modeled after glib style

Re: [Qemu-devel] [PATCH 03/22] qapi: add Error object

2011-03-07 Thread Anthony Liguori
On 03/07/2011 05:06 AM, Daniel P. Berrange wrote: On Sun, Mar 06, 2011 at 07:22:45PM -0600, Anthony Liguori wrote: The Error class is similar to QError (now deprecated) except that it supports propagation. This allows for higher quality error handling. It's losely modeled after glib style

Re: [Qemu-devel] [PATCH 15/22] qapi: add new QMP server that uses CharDriverState

2011-03-07 Thread Anthony Liguori
On 03/07/2011 07:52 AM, Stefan Hajnoczi wrote: On Mon, Mar 7, 2011 at 1:22 AM, Anthony Liguori wrote: +static void qmp_chr_send_greeting(QmpSession *s) +{ +VersionInfo *info; +QObject *vers; +QObject *greeting; +QString *str; + +info = qmp_query_version(NULL); +vers

Re: [Qemu-devel] [PATCH 01/22] Add hard build dependency on glib

2011-03-07 Thread Anthony Liguori
On 03/07/2011 04:59 AM, Daniel P. Berrange wrote: On Sun, Mar 06, 2011 at 07:22:43PM -0600, Anthony Liguori wrote: GLib is an extremely common library that has a portable thread implementation along with tons of other goodies. GLib and GObject have a fantastic amount of infrastructure we ca

  1   2   >