[Qemu-devel] [PATCH] doc: Update mingw cross compile instructions

2010-01-29 Thread Scott Tsai
change updates the instructions to: * Remove use of '--enable-mingw32' in the configure example * Correct the 'sdl-config' script name * Remove references to i386-mingw32msvc.tar.gz which no longer exists in recent SDL releases * Document the zlib dependency Signed-off-by: Scott Tsai scottt

Re: [Qemu-devel] Re: commit rules for common git tree

2009-12-27 Thread Scott Tsai
On Mon, Dec 28, 2009 at 4:34 AM, Aurelien Jarno aurel...@aurel32.net wrote: Most of the patches I commit without posting them first to the list are to fix bugs on non i386 targets, as they are broken too often by people who don't care about them. I don't like leaving the tree broken too long

[Qemu-devel] [FOR 0.12][PATCH] Improve usbdevice error messages

2009-12-22 Thread Scott Tsai
When an non-existent USB device is specified on the command line, print qemu: could not add USB device 'X'. Likewise for the usb_{add,del} monitor commands. Signed-off-by: Scott Tsai scottt...@gmail.com --- vl.c | 17 ++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff

Re: [Qemu-devel] Broken -usbdevice option in 0.12.1

2009-12-22 Thread Scott Tsai
On Tue, Dec 22, 2009 at 11:05 PM, Anthony Liguori anth...@codemonkey.ws wrote: On 12/22/2009 02:52 AM, Aurelien Jarno wrote: In version 0.12.1, using -usbdevice with an inexistent device exits without any error message, thus confusing the user: Would be good to file in launchpad since I

Re: [Qemu-devel] Networking hangs

2009-12-15 Thread Scott Tsai
On Fri, Dec 4, 2009 at 8:55 AM, Christoffer Dall cd...@vmware.com wrote: I tried to verify if the bug existed with Realview, but I just can't get the guest to mount an sd-card, which I created with qemu-img and copied a roots onto there and the guest kernel cannot be configured with PCI/SCSI

Re: [Qemu-devel] Re: [PATCH v2] Don't leak file descriptors

2009-12-02 Thread Scott Tsai
On Wed, Dec 2, 2009 at 7:26 PM, Kevin Wolf kw...@redhat.com wrote: v3 even. Anthony, I hope this doesn't confuse your scripts? Kevin, I see use of fopen, fdopen, popen, eventfd in qemu without the equivalent of CLOEXEC set. Do you want to handle those in this patch series as well?

Re: [Qemu-devel] [PATCH] Makefile: Add missing rule for config-devices.mak

2009-11-22 Thread Scott Tsai
; then -  cp $source_path/default-configs/${target}.mak $target_dir/config-devices.mak -fi -  #  # don't use ln -sf as not all ln -sf over write the file/link  # -- 1.5.6.5 Acked-by Scott Tsai scottt...@gmail.com I also hit this with the recent change to move two NICs into libhw and build them

Re: [Qemu-devel] Networking hangs

2009-11-20 Thread Scott Tsai
On Fri, Nov 20, 2009 at 6:48 AM, Christoffer Dall cd...@vmware.com wrote: When I copy files into the guest using SCP, after an undeterministic number of megabytes have been copied, the network crashes. At this point not even pings to localhost works inside the guest. I cannot reproduce this

Re: [Qemu-devel] Networking hangs

2009-11-20 Thread Scott Tsai
On Sat, Nov 21, 2009 at 7:29 AM, Aurelien Jarno aurel...@aurel32.net wrote: On Thu, Nov 19, 2009 at 05:48:02PM -0500, Christoffer Dall wrote: Hi. I am experiencing problems with bridged networking to ARM guests. I have experimented with various kernel versions, distributions and host

Re: [Qemu-devel] [PATCH] Don't leak file descriptors

2009-11-13 Thread Scott Tsai
On Fri, Nov 13, 2009 at 11:17 PM, Kevin Wolf kw...@redhat.com wrote: We're leaking file descriptors to child processes. Set FD_CLOEXEC on file descriptors that don't need to be passed to children to stop this misbehaviour. Since qemu is a multi threaded program, how about opening those file

Re: [Qemu-devel] Re: [PATCH] qemu/virtio: make wmb compiler barrier + comments

2009-11-11 Thread Scott Tsai
On Wed, Nov 11, 2009 at 10:08 PM, Michael S. Tsirkin m...@redhat.com wrote: On Wed, Nov 11, 2009 at 01:45:35PM +, Paul Brook wrote: If you don't need real barriers, then why does the kvm code have them? We need real barriers but AFAIK kvm does not have them :( IOW: virtio is currently

Re: [Qemu-devel] Re: [PATCH] qemu/virtio: make wmb compiler barrier + comments

2009-11-11 Thread Scott Tsai
On Thu, Nov 12, 2009 at 2:09 AM, Michael S. Tsirkin m...@redhat.com wrote: I do have a newbie question, when exactly would vrtio have to handle concurrent access from multiple threads? My current reading of the code suggests: 1. when CONFIG_IOTHREAD is true 2. when CONFIG_KVM is true and the

[Qemu-devel] [PATCH V2 1/3] usb: move HID request defines to hw/usb.h

2009-11-10 Thread Scott Tsai
Move USB HID request constants from hw/usb-hid.c to hw/usb.h to allow other modules to use them. Signed-off-by: Scott Tsai scottt...@gmail.com --- hw/usb-hid.c | 20 ++-- hw/usb.h |8 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/hw/usb-hid.c

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

2009-11-10 Thread Scott Tsai
+    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] [PATCH V2 2/3] usb-gotemp: new module emulating a USB thermometer

2009-11-10 Thread Scott Tsai
On Tue, Nov 10, 2009 at 11:33 PM, Alexander Graf ag...@suse.de wrote: How about having a monitor command to change the temperature, leveraging a common interface? That way in the future real host temperature measurements could maybe get forwarded there too. At least for battery I've had

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

2009-11-10 Thread Scott Tsai
On Tue, Nov 10, 2009 at 11:39 PM, Juan Quintela quint...@redhat.com wrote: Change them in the middle of one interval? once then arrived same limit, 40° or so go back to 20°? I can do this.

[Qemu-devel] [PATCH V3 0/3] usb-gotemp: USB thermometer emulation

2009-11-10 Thread Scott Tsai
I reworked the second patch in this series to add generic monitor commands to change the temperature reported from thermometers. Thermometer devices can now include sensor.h and call 'qemu_add_therm_temp_handler' to register themselves. I went with separate 'therm_set DEVICE_INDEX' and

[Qemu-devel] [PATCH V3 1/3] usb: move HID request defines to hw/usb.h

2009-11-10 Thread Scott Tsai
Move USB HID request constants from hw/usb-hid.c to hw/usb.h to allow other modules to use them. Signed-off-by: Scott Tsai scottt...@gmail.com --- hw/usb-hid.c | 20 ++-- hw/usb.h |8 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/hw/usb-hid.c

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

2009-11-10 Thread Scott Tsai
but is bound between 25C ~ 40C. Added new monitor commands: info thermometers therm_set INDEX therm_temp TEMPERATURE modeled after 'info mice', 'mouse_set' and 'mouse_move'. Signed-off-by: Scott Tsai scottt...@gmail.com --- Makefile|2 +- hw/usb-gotemp.c | 762

[Qemu-devel] [PATCH V3 3/3] Documentation: -usbdevice thermometer option

2009-11-10 Thread Scott Tsai
Adds documentation for the '-usbdevice thermometer' option. Signed-off-by: Scott Tsai scottt...@gmail.com --- qemu-options.hx |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index b65fd74..c2e3b6c 100644 --- a/qemu-options.hx +++ b

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

2009-11-10 Thread Scott Tsai
On Wed, Nov 11, 2009 at 8:57 AM, Greg KH gre...@suse.de wrote: What code?  Where is it at? http://patchwork.ozlabs.org/patch/38118/ This code emulates a Vernier Go!Temp device in qemu. I wrote this to enable people to follow your driver tutorial without buying the gadget. (I implemented

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

2009-11-10 Thread Scott Tsai
On Wed, Nov 11, 2009 at 8:09 AM, Anthony Liguori anth...@codemonkey.ws wrote: That said, if we position this as an example device, I think that makes sense.  But that suggests that we should document the heck out of it and make it a learning experience for QEMU too.  It could be an example of

Re: [Qemu-devel]question:arm's mutli-core emulator

2009-11-07 Thread Scott Tsai
2009/11/7 m9807418 m9807...@mail.ntust.edu.tw: When I used qemu-system-arm and the -smp option. I key -smp 2. It have a message Number of SMP cpus requested (2), exceeds max cpus supported by machine `Versatile' (1) which files of the qemu source code can i change? And the change can let

Re: [Qemu-devel] How to add a new machine support in qemu?

2009-11-05 Thread Scott Tsai
Michael, You might want to read these two threads: RE: [Qemu-devel] Support for new target emulator: http://lists.gnu.org/archive/html/qemu-devel/2009-10/msg02131.html [Qemu-devel] [PATCH 00/12] S/390 support http://lists.gnu.org/archive/html/qemu-devel/2009-10/msg01857.html

Re: [Qemu-devel] How to add a new machine support in qemu?

2009-11-05 Thread Scott Tsai
On Fri, Nov 6, 2009 at 12:43 PM, Scott Tsai scottt...@gmail.com wrote: Michael, You might want to read these two threads: RE: [Qemu-devel] Support for new target emulator: http://lists.gnu.org/archive/html/qemu-devel/2009-10/msg02131.html [Qemu-devel] [PATCH 00/12] S/390 support http

[Qemu-devel] [PATCH 0/3] usb-gotemp: USB thermometer emulation

2009-11-03 Thread Scott Tsai
Greg Kroah-Hartman has been giving a talk titled Write a Real, Working, Linux Driver for the past four years at various conferences. This patch series enables qemu to emulate the Vernier Go!Temp USB thermometer used in that talk. This was motivated by experience from the FreedomHEC Taipei 2009

[Qemu-devel] [PATCH 1/3] usb-gotemp: expose HID request defines in usb.h

2009-11-03 Thread Scott Tsai
Move USB HID request constants from hw/usb-hid.c to hw/usb.h to allow other modules to use them. Signed-off-by: Scott Tsai scottt...@gmail.com --- hw/usb-hid.c | 20 ++-- hw/usb.h |8 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/hw/usb-hid.c

[Qemu-devel] [PATCH 2/3] usb-gotemp: new Vernier Go!Temp thermometer emulation

2009-11-03 Thread Scott Tsai
Linux. No testing have yet been done with the vendor's fancier Windows software. Signed-off-by: Scott Tsai scottt...@gmail.com --- Makefile|2 +- hw/usb-gotemp.c | 709 +++ vl.c|3 + 3 files changed, 713 insertions

[Qemu-devel] [PATCH 3/3] usb-gotemp: documentation

2009-11-03 Thread Scott Tsai
Document the '-usbdevice thermometer' option. --- qemu-options.hx |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index d78b738..6748875 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -396,6 +396,9 @@ or fake device. @item

Re: [Qemu-devel] qemu-kvm-0.11 regression, crashes on older guests with virtio network

2009-10-29 Thread Scott Tsai
-0.10.6-9.fc11.x86_64. The patch I posted earlier actually only applies to the 0.10 branch, here's a patch that compiles for 0.11: From 06aa7db0705cf747c35cbcbd09d0e37713f16fe4 Mon Sep 17 00:00:00 2001 From: Scott Tsai scottt...@gmail.com Date: Thu, 29 Oct 2009 10:56:12 +0800 Subject: [PATCH

Re: [Qemu-devel] qemu-kvm-0.11 regression, crashes on older guests with virtio network

2009-10-29 Thread Scott Tsai
Hmm - 0x930 doesn't seem right. Is that 930 decimal, 0x3a2 hex? yup. printf format string typo.

Re: [Qemu-devel] qemu-kvm-0.11 regression, crashes on older guests with virtio network

2009-10-29 Thread Scott Tsai
Hi, Dustin, What's the easiest way to see the patches to qemu that Canonical carries for the different Ubuntu releases? (I think http://patches.ubuntu.com/ only diffs against Debian for the last stable Ubuntu release?) Also, is there a way for an outside developer to get email notifications when

Re: [Qemu-devel] qemu-kvm-0.11 regression, crashes on older guests with virtio network

2009-10-28 Thread Scott Tsai
Sep 17 00:00:00 2001 From: Scott Tsai scottt...@gmail.com Date: Thu, 29 Oct 2009 10:56:12 +0800 Subject: [PATCH] virtio-net: drop large packets when no mergable_rx_bufs see: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/458521 --- hw/virtio-net.c |8 +++- hw/virtio.c | 22

[Qemu-devel] Re: [PATCH 0/5] Fix packet queueing to allow full tap queue drain

2009-10-27 Thread Scott Tsai
Scott, Sven, if you could test the tap-drain-queue branch from my tree, that would be great: http://repo.or.cz/w/qemu/markmc.git Thanks, Mark. Mark, I've tested http://repo.or.cz/w/qemu/markmc.git and it indeed works for my test case (NFS through emulated smc91c111 NIC on

[Qemu-devel] qemu: async sending in tap causes NFS not responding error

2009-10-24 Thread Scott Tsai
values pretty confusing. I'm sure my patch should be refined to both make both NFS root and the originally intended optimization work. From ffde3feb1922c1d5663ace9d5a32eacaa26491dd Mon Sep 17 00:00:00 2001 From: Scott Tsai scottt...@gmail.com Date: Sun, 25 Oct 2009 01:52:36 +0800 Subject: [PATCH] net