[PATCHv3 0/2] mm: use_mm/unuse_mm

2009-09-17 Thread Michael S. Tsirkin
This moves use_mm/unuse_mm from aio into mm, and optimizes atomic usage there. Original patchset also exported use_mm/unuse_mm to modules, for use by vhost, that bit will come in later when vhost is posted for inclusion. Michael S. Tsirkin (2): mm: move use_mm/unuse_mm from aio.c to mm/ mm:

[PATCHv3 1/2] mm: move use_mm/unuse_mm from aio.c to mm/

2009-09-17 Thread Michael S. Tsirkin
Anyone who wants to do copy to/from user from a kernel thread, needs use_mm (like what fs/aio has). Move that into mm/, to make reusing and exporting easier down the line, and make aio use it. Next intended user, besides aio, will be vhost-net. Acked-by: Andrea Arcangeli aarca...@redhat.com

[PATCHv3 2/2] mm: reduce atomic use on use_mm fast path

2009-09-17 Thread Michael S. Tsirkin
When mm switched to matches that of active mm, we don't need to increment and then drop the mm count. In a simple benchmark this happens in about 50% of time. Making that conditional reduces contention on that cache line on SMP systems. Acked-by: Andrea Arcangeli aarca...@redhat.com

Bridges problem with kvm

2009-09-17 Thread carlopmart
Hi all, I have a strange problem with my bridges configuration. I have a rhel5.4 host with kvm-83-105 package installed. This host has two bridged interfaces defined to use with kvm guests: DEVICE=prodif ONBOOT=yes TYPE=Bridge IPADDR=172.26.50.14 NETMASK=255.255.255.240 DELAY=0 STP=off and

Re: [PATCHv5 3/3] vhost_net: a kernel-level virtio server

2009-09-17 Thread Avi Kivity
On 09/17/2009 06:11 AM, Gregory Haskins wrote: irqfd/eventfd is the abstraction layer, it doesn't need to be reabstracted. Not per se, but it needs to be interfaced. How do I register that eventfd with the fastpath in Ira's rig? How do I signal the eventfd (x86-ppc, and ppc-x86)?

Re: SOLVED kvm networking on debian unstable

2009-09-17 Thread Thomas Koch
The solution is, to delete /etc/udev/rules.d/70-persistent-net.rules in the guest and reboot. This is an autogenerated file, which stores the mapping of MAC adresses to interface names. Since my MAC address changed, the interface wasn't automatically added anymore. found at:

[ kvm-Bugs-2860533 ] guest: CTRL key unusable after host caps lock/ctrl swap

2009-09-17 Thread SourceForge.net
Bugs item #2860533, was opened at 2009-09-17 08:10 Message generated for change (Tracker Item Submitted) made by fkater2 You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2860533group_id=180599 Please note that this message will contain a full copy of the

kvm networking (NAT) on debian unstable with libvirt

2009-09-17 Thread Thomas Koch
Already sent to libvirt without response. Hi, I'm trying to get NAT networking running as described in http://libvirt.org/formatnetwork.html#examplesNAT But in the guest, ifconfig shows only the lo interface. I created the kvm image (debian lenny 5.0.3) directly with qemu-img and kvm, because

Re: GDB + KVM Debug

2009-09-17 Thread Jan Kiszka
Saksena, Abhishek wrote: I am using KVM-88. However I can't get gdb still working. I stared qemu with -s -S option and when I try to connect gdb to it I get following error:- (gdb) target remote lochost:1234 lochost: unknown host lochost:1234: No such file or directory. (gdb) target

eepro100.c

2009-09-17 Thread Michal Filka
Hi, I have question on i82557b emulation in kvm. I have run a proprietary operating system (Pharlap OS) in kvm. Part of the job has been porting driver for i8255x. During the job I discovered that kvm's emulation doesn't support a RNR interrupt (it is disabled in the code). Why is it

Re: vhost-net todo list

2009-09-17 Thread Arnd Bergmann
On Wednesday 16 September 2009, Michael S. Tsirkin wrote: Also, I might not want to allow the user to open a random random raw socket, but only one on a specific downstream port of a macvlan interface, so I can filter out the data from that respective MAC address in an external switch.

Re: vhost-net todo list

2009-09-17 Thread Michael S. Tsirkin
On Thu, Sep 17, 2009 at 01:30:00PM +0200, Arnd Bergmann wrote: On Wednesday 16 September 2009, Michael S. Tsirkin wrote: Also, I might not want to allow the user to open a random random raw socket, but only one on a specific downstream port of a macvlan interface, so I can filter out the

Re: Bridges problem with kvm (SOLVED)

2009-09-17 Thread carlopmart
carlopmart wrote: Hi all, I have a strange problem with my bridges configuration. I have a rhel5.4 host with kvm-83-105 package installed. This host has two bridged interfaces defined to use with kvm guests: DEVICE=prodif ONBOOT=yes TYPE=Bridge IPADDR=172.26.50.14 NETMASK=255.255.255.240

Re: vhost-net todo list

2009-09-17 Thread Arnd Bergmann
On Thursday 17 September 2009, Michael S. Tsirkin wrote: On Thu, Sep 17, 2009 at 01:30:00PM +0200, Arnd Bergmann wrote: On Wednesday 16 September 2009, Michael S. Tsirkin wrote: Also, I might not want to allow the user to open a random random raw socket, but only one on a specific

Re: vhost-net todo list

2009-09-17 Thread Michael S. Tsirkin
On Thu, Sep 17, 2009 at 02:14:06PM +0200, Arnd Bergmann wrote: On Thursday 17 September 2009, Michael S. Tsirkin wrote: On Thu, Sep 17, 2009 at 01:30:00PM +0200, Arnd Bergmann wrote: On Wednesday 16 September 2009, Michael S. Tsirkin wrote: Also, I might not want to allow the user to

Re: [PATCHv5 3/3] vhost_net: a kernel-level virtio server

2009-09-17 Thread Javier Guerra
On Wed, Sep 16, 2009 at 10:11 PM, Gregory Haskins gregory.hask...@gmail.com wrote:  It is certainly not a requirement to make said chip somehow work with existing drivers/facilities on bare metal, per se.  Why should virtual systems be different? i'd guess it's an issue of support resources. a

Re: vhost-net todo list

2009-09-17 Thread Arnd Bergmann
On Thursday 17 September 2009, Michael S. Tsirkin wrote: Well, we could have a char device with an ioctl that gives you back a socket, or maybe even have it give you back a socket when you open it. Will that make you happy? Well, that would put is in the exact same spot as the tun/tap driver

Greeting from patricia

2009-09-17 Thread patriciab
Hello my dear, My name Patricia bouba i saw your email in my mail box i deceived to contact you so that i will know you the more and for you to know too please i want you to write me back in my mail box so that i will give you my picture for you know whom i am and i know too please don't

Re: [Autotest] [KVM-AUTOTEST PATCH 0/7] KVM test: support for the new remote shell server for Windows

2009-09-17 Thread Michael Goldish
- Michael Goldish mgold...@redhat.com wrote: - Yolkfull Chow yz...@redhat.com wrote: On Tue, Aug 18, 2009 at 06:30:14PM -0400, Michael Goldish wrote: - Lucas Meneghel Rodrigues l...@redhat.com wrote: On Tue, Aug 18, 2009 at 7:15 AM, Michael

Re: [ANNOUNCE] Release to community: Windows kvm/virtio guest drivers

2009-09-17 Thread Armindo Silva
Hi, There are any news about the new pv drivers? They would be very welcome by the community :) Cheers Armindo On Mon, Aug 17, 2009 at 4:03 PM, Yan Vugenfirer yvuge...@redhat.com wrote: -Original Message- From: kvm-ow...@vger.kernel.org [mailto:kvm-ow...@vger.kernel.org] On

option -daemonize broken in -next branch of qemu-kvm

2009-09-17 Thread renevant
Hello, When using -daemonize the VM won't start and the following is printed: kvm_create_vcpu: Input/output error create_userspace_phys_mem: Input/output error kvm_cpu_register_physical_memory: failed Regards, Will Trives

[PATCH] gdbstub: x86: Switch 64/32 bit registers dynamically

2009-09-17 Thread Jan Kiszka
Commit 56aebc891674cd2d07b3f64183415697be200084 changed gdbstub in way that debugging 32 or 16-bit guest code is no longer possible with qemu for x86_64 guest CPUs. Since that commit, qemu only provides registers sets for 64-bit, forcing current and foreseeable gdb to also switch its architecture

Re: [PATCH] virtio-blk: set QUEUE_ORDERED_DRAIN by default

2009-09-17 Thread Christoph Hellwig
Err, I'll take this one back for now pending some more discussion. What we need more urgently is the writeback cache flag, which is now implemented in qemu, patch following ASAP. -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org

Re: kvm network latency, higher with virtio ?

2009-09-17 Thread Luca Bigliardi
On Wed, Sep 16, 2009 at 11:47:07AM +0300, Dor Laor wrote: Hi! Thank you for explaining. Measurements of older versions of virtio proved that we can cancel this timer and achieve better latency while not hurting throughput. Well, I did try the patch Michael is suggesting here:

[PATCH] qemu-kvm: Fix guest single-stepping

2009-09-17 Thread Jan Kiszka
Hopefully the last regression of 4c0960c0: KVM_SET_GUEST_DEBUG requires properly synchronized guest registers (on x86: eflags) on entry. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- qemu-kvm.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/qemu-kvm.c

RE: [ANNOUNCE] Release to community: Windows kvm/virtio guest drivers

2009-09-17 Thread Yan Vugenfirer
The sources are released and can be easily compiled :) Some technical issues with releasing the binaries. But they are coming soon. Best regards, Yan. -Original Message- From: kvm-ow...@vger.kernel.org [mailto:kvm-ow...@vger.kernel.org] On Behalf Of Armindo Silva Sent: Thursday,

[PATCH] update qemu-ifup for modern ip route output

2009-09-17 Thread Dustin Kirkland
update qemu-ifup for modern ip route output The output from the /sbin/ip utility has changed, adding two more columns, which breaks the qemu-ifup script, as it was depending on the last column being the interface name. Change this from $NF to $5.

Re: [PATCH -v2] QEMU-KVM: MCE: Relay UCR MCE to guest

2009-09-17 Thread Marcelo Tosatti
On Thu, Sep 17, 2009 at 09:13:29AM +0800, Huang Ying wrote: On Thu, 2009-09-17 at 01:59 +0800, Marcelo Tosatti wrote: On Wed, Sep 09, 2009 at 10:28:02AM +0800, Huang Ying wrote: UCR (uncorrected recovery) MCE is supported in recent Intel CPUs, where some hardware error such as some

Re: losing mouse location with vnc

2009-09-17 Thread Ross Boylan
On Sat, 2009-09-12 at 11:48 +0200, Kenni Lund wrote: 2009/9/12 Ross Boylan r...@biostat.ucsf.edu: When I try to use a (Linux) VM via vnc there appear to be two mouse locations at once. One is the pointer displayed on the screen; the other is the shown as a little box by krdc when I select

Possible problem with -no-kvm-irqchip -no-kvm-pit qemu options detected during git daily testing

2009-09-17 Thread Lucas Meneghel Rodrigues
/scm/virt/kvm/kvm-kmod.git is e9f6d366fa77a0988bcba2554a63a539ff1b2358 (kvm-88-14-ge9f6d36) The full command lines being used are: /usr/local/autotest/tests/kvm/qemu -name 'vm1' -monitor unix:/tmp/monitor-20090917-005904-H8Zl,server,nowait -drive file=/usr/local/autotest/tests/kvm/images/fc9-32

Re: [PATCH 9/9] KVM: remove duplicated #include

2009-09-17 Thread Marcelo Tosatti
Applied, thanks. On Wed, Sep 16, 2009 at 09:09:39PM +0800, Huang Weiyi wrote: Remove duplicated #include('s) in arch/x86/kvm/lapic.c Signed-off-by: Huang Weiyi weiyi.hu...@gmail.com --- arch/x86/kvm/lapic.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git

Re: [PATCH -v2] QEMU-KVM: MCE: Relay UCR MCE to guest

2009-09-17 Thread Huang Ying
On Fri, 2009-09-18 at 05:36 +0800, Marcelo Tosatti wrote: +} else if (siginfo-ssi_code == BUS_MCEERR_AR) +fprintf(stderr, Hardware memory error!\n); +else +fprintf(stderr, Internal error in QEMU!\n); Can you re-raise SIGBUS so you we get a coredump

whats the advantage of enable-io-thread

2009-09-17 Thread Dietmar Maurer
Hi all, what is the advantage of the --enable-io-thread options. It is disabled by default - why? - Dietmar -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: option -daemonize broken in -next branch of qemu-kvm

2009-09-17 Thread Marcelo Tosatti
On Fri, Sep 18, 2009 at 02:15:12AM +1000, renev...@netspace.net.au wrote: Hello, When using -daemonize the VM won't start and the following is printed: kvm_create_vcpu: Input/output error create_userspace_phys_mem: Input/output error kvm_cpu_register_physical_memory: failed