Re: [Qemu-devel] [PATCH 12/16] scsi-generic: use plain ioctl

2010-11-20 Thread Nicholas A. Bellinger
On Sat, 2010-11-20 at 01:25 +, adq wrote: > On 20 November 2010 00:41, Nicholas A. Bellinger wrote: > > On Fri, 2010-11-19 at 19:39 +0100, Christoph Hellwig wrote: > >> On Thu, Nov 18, 2010 at 03:47:36PM +0100, Hannes Reinecke wrote: > >> > > >> > aio_ioctl is emulated anyway and currently bro

Re: [Qemu-devel] Re: [PATCH 0/2] v8 Decouple block device removal from device removal

2010-11-20 Thread Kevin Wolf
Am 16.11.2010 14:51, schrieb Luiz Capitulino: > On Fri, 12 Nov 2010 18:38:57 +0100 > Kevin Wolf wrote: > >> Am 12.11.2010 18:07, schrieb Ryan Harper: >>> details, details, v8 >>> >>> This patch series decouples the detachment of a block device from the >>> removal of the backing pci-device. Remo

Re: [Qemu-devel] [PATCH v2 2/2] RAM API: Make use of it for x86 PC

2010-11-20 Thread Anthony Liguori
On 11/01/2010 10:14 AM, Alex Williamson wrote: Register the actual VM RAM using the new API Signed-off-by: Alex Williamson --- hw/pc.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 69b13bf..0ea6d10 100644 --- a/hw/pc.c +++ b/hw/pc

Re: [Qemu-devel] macaddr doesn't work

2010-11-20 Thread Mulyadi Santosa
On Fri, Nov 19, 2010 at 16:09, 郭沐錫 wrote: > However the eth0 will disapear and induce I cannot assign the IP address to > the QEMU. > http://myweb.ncku.edu.tw/~p76991028/eth0.png I think I already asked you to type "ifconfig -a" and see if it is there? -- regards, Mulyadi Santosa Freelance Lin

Re: [Qemu-devel] [PATCH 12/16] scsi-generic: use plain ioctl

2010-11-20 Thread adq
On 20 November 2010 08:23, Nicholas A. Bellinger wrote: > On Sat, 2010-11-20 at 01:25 +, adq wrote: >> On 20 November 2010 00:41, Nicholas A. Bellinger >> wrote: >> > On Fri, 2010-11-19 at 19:39 +0100, Christoph Hellwig wrote: >> >> On Thu, Nov 18, 2010 at 03:47:36PM +0100, Hannes Reinecke w

Re: [Qemu-devel] macaddr doesn't work

2010-11-20 Thread 郭沐錫
Dear all Sorry, I was wrong. I was too hurry to result in that I don't understand that command. By "ifconfig -a", I found other eth... Thank you to Mulyadi. Best Regards, 2010/11/20 Mulyadi Santosa > On Fri, Nov 19, 2010 at 16:09, 郭沐錫 wrote: > > However the eth0 will disapear and induce I

Re: [Qemu-devel] [PATCH v2 1/2] Minimal RAM API support

2010-11-20 Thread Anthony Liguori
On 11/01/2010 10:14 AM, Alex Williamson wrote: This adds a minimum chunk of Anthony's RAM API support so that we can identify actual VM RAM versus all the other things that make use of qemu_ram_alloc. Signed-off-by: Alex Williamson --- Makefile.objs |1 + cpu-common.h |2 + memory.

Re: [Qemu-devel] How to make shadow memory for a process? and how to trace the data propation from the instruction level in QEMU?

2010-11-20 Thread Lluís
F Zhang writes: > This topic includes things that I recognized as critical. Have you any > suggestions? Sorry, I don't understand about what you want suggestions.  Yes. For each process’s memory space A, I wanna make a shadow memory B. The  shadow memory is used to store the tag of da

Re: [Qemu-devel] [PATCH v2] ioport: Fix duplicated code

2010-11-20 Thread Anthony Liguori
On 11/11/2010 08:03 AM, Luiz Capitulino wrote: Functions register_ioport_read() and register_ioport_write() are almost identical, the only difference is that they write to different arrays. Introduce register_ioport_rw() to handle this difference and change both functions to use it instead of du

Re: [Qemu-devel] Re: [PATCH v2 0/4] use new vgabios.

2010-11-20 Thread Anthony Liguori
On 11/17/2010 04:26 AM, Gerd Hoffmann wrote: On 11/16/10 15:51, Anthony Liguori wrote: On 11/01/2010 11:03 AM, Gerd Hoffmann wrote: On 10/15/10 12:02, Gerd Hoffmann wrote: This patch series will put the new vgabios into use for stdvga and vmware_vga. The vgabios patches have been posted a whil

Re: [Qemu-devel] [PATCH 0/3] add hotplug opt-out option for devices.

2010-11-20 Thread Anthony Liguori
On 11/18/2010 04:45 AM, Gerd Hoffmann wrote: Hi, This patch series adds a qdev flag which allows devices being tagged as not hotpluggable. It also sets this flag for a number of devices. I understand why you're adding this but this is one of those horrible abuses of qdev that we real

Re: [Qemu-devel] [PATCH 2/3] vnc: support password expire

2010-11-20 Thread Anthony Liguori
On 11/17/2010 04:23 AM, Gerd Hoffmann wrote: But the later let's a management tool implement arbitrarily complex expiration policies. Hmm, we could do this: set-password $protocol $secret expire-password $protocol [ now | never | $seconds ] Comments? I would be happy with this. I don't mi

Re: [Qemu-devel] [PATCH] stop the iteration when too many pages is transferred

2010-11-20 Thread Anthony Liguori
On 11/17/2010 08:32 PM, Wen Congyang wrote: > When the total sent page size is larger than max_factor > times of the size of guest OS's memory, stop the > iteration. > The default value of max_factor is 3. > > This is similar to XEN. > > > Signed-off-by: Wen Congyang > I'm strongly opposed to d

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

2010-11-20 Thread Andreas Färber
Am 19.11.2010 um 17:30 schrieb jes.soren...@redhat.com: From: Jes Sorensen Signed-off-by: Jes Sorensen --- Makefile |2 +- Makefile.objs | 12 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) Tested-by: Andreas Färber Looks good to me and a clean build works okay.

Re: [Qemu-devel] [PATCH 0/3] add hotplug opt-out option for devices.

2010-11-20 Thread Gleb Natapov
On Fri, Nov 19, 2010 at 08:30:35PM -0600, Anthony Liguori wrote: > On 11/18/2010 04:45 AM, Gerd Hoffmann wrote: > > Hi, > > > >This patch series adds a qdev flag which allows devices being tagged as > >not hotpluggable. It also sets this flag for a number of devices. > > > > I understand why yo

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

2010-11-20 Thread Stefan Hajnoczi
On Sat, Nov 20, 2010 at 5:22 PM, Andreas Färber wrote: > Any plans for a way to disable NBD build completely? There are warnings > about use of daemon() on Mac OS X and possibly Solaris, and there's little > point in building qemu-nbd if one does not use it. daemon() could be replaced by sharing

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

2010-11-20 Thread Andreas Färber
Am 20.11.2010 um 18:39 schrieb Stefan Hajnoczi: On Sat, Nov 20, 2010 at 5:22 PM, Andreas Färber > wrote: Any plans for a way to disable NBD build completely? There are warnings about use of daemon() on Mac OS X and possibly Solaris, and there's little point in building qemu-nbd if one does n

[Qemu-devel] Re: [PATCH] pci: Replace unneeded type casts in calls of pci_register_bar

2010-11-20 Thread Michael S. Tsirkin
On Fri, Nov 19, 2010 at 07:29:07PM +0100, Stefan Weil wrote: > There is no need for these type casts (as other existing > code shows). So re-write the first argument without > type cast (and remove a related TODO comment). > > Cc: Michael S. Tsirkin > Signed-off-by: Stefan Weil Thanks, applied.

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

2010-11-20 Thread Stefan Hajnoczi
On Sat, Nov 20, 2010 at 6:04 PM, Andreas Färber wrote: > Am 20.11.2010 um 18:39 schrieb Stefan Hajnoczi: > >> On Sat, Nov 20, 2010 at 5:22 PM, Andreas Färber >> wrote: >>> >>> Any plans for a way to disable NBD build completely? There are warnings >>> about use of daemon() on Mac OS X and possibl

Re: [Qemu-devel] macaddr doesn't work

2010-11-20 Thread Mulyadi Santosa
Hi... 2010/11/20 郭沐錫 : > Dear all > Sorry, I was wrong. > I was too hurry to result in that I don't understand that command. > > By "ifconfig -a", I found other eth... > Thank you to Mulyadi. No problem...I believe you had important lesson here :) -- regards, Mulyadi Santosa Freelance Linux tr

Re: [Qemu-devel] Re: [PATCH] PCI: Bus number from the bridge, not the device

2010-11-20 Thread Michael S. Tsirkin
On Fri, Nov 19, 2010 at 10:38:42PM +0200, Gleb Natapov wrote: > On Fri, Nov 19, 2010 at 06:02:58PM +0100, Markus Armbruster wrote: > > "Michael S. Tsirkin" writes: > > > > > On Tue, Nov 09, 2010 at 11:41:43AM +0900, Isaku Yamahata wrote: > > >> On Mon, Nov 08, 2010 at 06:26:33PM +0200, Michael S.

Re: [Qemu-devel] [PULL] vhost, netdev, e1000, pci

2010-11-20 Thread Luiz Capitulino
On Tue, 16 Nov 2010 15:16:20 +0200 "Michael S. Tsirkin" wrote: > Here are some fixes I collected in my tree. > Please merge. > > The following changes since commit 5fc9cfedfa09199e10b5f9b67dcd286bfeae4f7a: > > Fold send_all() wrapper unix_write() into one function (2010-11-03 12:48:09 > -050

[Qemu-devel] Re: [PATCH] ahci: fix lst+fis mapping

2010-11-20 Thread Alexander Graf
On 20.11.2010, at 00:06, Gerd Hoffmann wrote: > The ahci map_page() function checks whenever it got a full page mapped. > This is wrong. The data structures are much smaller: command list is > 1k and fis is 256 bytes. Checking whenever we can access that much > bytes without crossing a page b

Re: [Qemu-devel] [PATCH 00/10] AHCI emulation support v2

2010-11-20 Thread Alexander Graf
On 19.11.2010, at 14:46, Kevin Wolf wrote: > Am 19.11.2010 14:08, schrieb Alexander Graf: >> >> On 19.11.2010, at 10:15, Kevin Wolf wrote: >> >>> Am 18.11.2010 19:43, schrieb Alexander Graf: > Then I believe that core.c is now a mixture of some generic ATA code > (that is also used by S

Re: [Qemu-devel] [PATCH 00/10] AHCI emulation support v2

2010-11-20 Thread Alexander Graf
On 19.11.2010, at 10:12, Stefan Hajnoczi wrote: > On Thu, Nov 18, 2010 at 11:24 PM, Alexander Graf wrote: >> linux-uztg:~ # dd if=/dev/sdc of=/dev/null bs=10M count=300 iflag=direct > > That's a big block size. bs=8k is interesting too because we see the > per-request overhead. Since IDE, SAT