[Qemu-devel] Share a directory between a linux host and a windows guest w/o network?

2011-05-20 Thread Torsten Förtsch
Hi,

is it possible to share a directory between a windows guest running on a 
linux host? Similar to samba but independent on the network?

I have searched for combinations of "v9fs" or "virtio-9p" and "windows" 
but didn't find anything relevant.

Thanks,
Torsten Förtsch



Re: [Qemu-devel] [PATCH] Overwrite argv to set process title, eliminating 16-character prctl() limit.

2010-11-07 Thread Torsten Förtsch
Hi,

On Sunday, November 07, 2010 16:44:12 John Morrissey wrote:
> -if (prctl(PR_SET_NAME, name)) {
> -perror("unable to change process name");
> -exit(1);
> -}
> +
> +last_argv_byte = argv[argc - 1] + strlen(argv[argc - 1]);
> +
> +len = snprintf(argv[0], last_argv_byte - argv[0], "%s", name);
> +
> +p = &argv[0][len];
> +while (p <= last_argv_byte)
> +*p++ = '\0';
> +for (i = 1; i < argc; ++i)
> +argv[i] = (char *) "";

I am quite new to the list but why not do both call prctl(PR_SET_NAME, name) 
and overwrite argv?

The point is some tools read /proc/PID/cmdline but others the name field in 
/proc/PID/status. The former is changed by overwriting argv the latter by 
prctl.

Torsten Förtsch

-- 
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net



[Qemu-devel] [FYI] memory leak in 0.14.0rc1 ?

2011-02-15 Thread Torsten Förtsch
Hi,

perhaps this is the wrong list. If so then please accept my apology.

I am trying out the opensuse kvm rpm from the Virtualization repository:

  
http://download.opensuse.org/repositories/Virtualization/openSUSE_11.3/x86_64/kvm-0.14.0.rc1-67.1.x86_64.rpm

I have installed winxp and run the machine as "/usr/bin/qemu-kvm -name xp.home 
-m 768 ...".

On the machine I have compiled perl from the sources.

After a fresh start, when I try to run the perl test suite the process size 
grows to ~2500 Mb with an RSS of 2.2 Gb. On a second run of the test suite the 
process size and RSS continue to grow.

I'd expect the memory consumption to be limited somewhere between 768 Mb and 1 
Gb.

See also https://bugzilla.novell.com/show_bug.cgi?id=671809

Torsten Förtsch



Re: [Qemu-devel] [FYI] memory leak in 0.14.0rc1 ?

2011-02-15 Thread Torsten Förtsch
On Tuesday, February 15, 2011 15:43:32 Stefan Hajnoczi wrote:
> > I have installed winxp and run the machine as "/usr/bin/qemu-kvm -name
> > xp.home -m 768 ...".
> 
> Are you able to try QEMU 0.14.0-rc2 from source?
> 
> $ git clone git://git.qemu.org/qemu.git
> $ git checkout v0.14.0-rc2
> $ ./configure --target-list=x86_64-softmmu --enable-io-thread
> --disable-strip --prefix=/usr
> $ make
> $ x86_64-softmmu/qemu-system-x86_64 -enable-kvm -m 768 -name xp.home ...

Now, the process size stays around 1300 Mb and RSS is very constant at 794 Mb.

But the VM is much slower. Although, according to "info kvm" kvm is enabled.

What options do I have to use to get optimal performance?

> Also, please post your full KVM command-line so we know what devices
> and features you have enabled.

x86_64-softmmu/qemu-system-x86_64 \
  -name xp.home -boot order=dc \
  -drive file=/.../xp.home/root.raw,if=virtio \
  -drive file=/.../config.cpio,if=floppy,index=1 \
  -m 768 \
  -usb \
  -rtc base=utc,clock=host \
  -vga std \
  -cpu host \
  -smp 2 \
  -enable-kvm \
  -balloon virtio \
  -vnc 127.0.0.1:15 \
  -monitor unix:/.../xp.home/.monitor,server,nowait \
  -serial unix:/.../xp.home/.ttyS0,server,nowait \
  -net nic,vlan=0,model=virtio,macaddr=E0:23:DA:00:00:05 \
  -net 
tap,vlan=0,name=ext,ifname=qe5,script=/.../qemu-ifup,downscript=/.../qemu-ifdown
 \
  -net nic,vlan=1,model=virtio,macaddr=F0:23:DA:00:00:05 \
  -net 
tap,vlan=1,name=int,ifname=qi5,script=/.../qemu-ifup,downscript=/.../qemu-ifdown
 \
  -rtc base=localtime \
  -usbdevice tablet

In the original command there was another option "boot=on" on the 1st drive.
And, the -daemonize option was given.

BTW, the monitor still says it's QEMU 0.13.92, not 0.14.

Torsten Förtsch



Re: [Qemu-devel] [FYI] memory leak in 0.14.0rc1 ?

2011-02-25 Thread Torsten Förtsch
On Tuesday, February 15, 2011 21:16:49 Stefan Hajnoczi wrote:
> 2011/2/15 Torsten Förtsch :
> > On Tuesday, February 15, 2011 15:43:32 Stefan Hajnoczi wrote:
> >> > I have installed winxp and run the machine as "/usr/bin/qemu-kvm -name
> >> > xp.home -m 768 ...".
> >> 
> >> Are you able to try QEMU 0.14.0-rc2 from source?
> >> 
> >> $ git clone git://git.qemu.org/qemu.git
> >> $ git checkout v0.14.0-rc2
> >> $ ./configure --target-list=x86_64-softmmu --enable-io-thread
> >> --disable-strip --prefix=/usr
> >> $ make
> >> $ x86_64-softmmu/qemu-system-x86_64 -enable-kvm -m 768 -name xp.home ...
> > 
> > Now, the process size stays around 1300 Mb and RSS is very constant at
> > 794 Mb.
> 
> Thank you for checking this.  This is probably a Suse-specific or
> qemu-kvm issue.

Just for your information, it turns out that --enable-vnc-thread is the 
culprit, see

  https://bugzilla.novell.com/show_bug.cgi?id=671809

The method explained there (comment 4) also makes a 0.14.0 compiled from the 
sources and configured as

  ./configure --target-list=x86_64-softmmu \
  --enable-io-thread --enable-vnc-thread

grow.

Torsten Förtsch

-- 
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net