From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Hartmann Subject: Re: vfio problem Date: Fri, 08 Jun 2012 19:39:15 +0200 Message-ID: <4FD238C3.8000505@01019freenet.de> References: <4FD22F47.908@01019freenet.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: KVM To: Alex Williamson Return-path: Received: from mout6.freenet.de ([195.4.92.96]:51887 "EHLO mout6.freenet.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757855Ab2FHRmB (ORCPT ); Fri, 8 Jun 2012 13:42:01 -0400 In-Reply-To: <4FD22F47.908@01019freenet.de> Sender: kvm-owner@vger.kernel.org List-ID: Andreas Hartmann wrote: > Hello Alex, > > You can probably say, what this message on host side means: > > kernel: [ 3902.124109] vfio_dma_do_map: RLIMIT_MEMLOCK (65536) exceeded > > The WLAN card in the VM doesn't work any more. It came up after a few > times of restarting the VM (with unbinding / rebinding - procedures). > > I'll see if it is reproducible. I had to reboot to get it working again. It is reproducible. And id seems not to be a problem of binding / unbinding, but the fact of not starting it as root user seems to be the problem. I never saw these problems with a root VM (and root does have the same value for ulimit -l). - Is it possible to run the VM / VFIO in user context? - What size should be used for ulimit -l? Thanks, Andreas