From: Ian Campbell Subject: Re: [PATCH 2/5] hotplug/linux: Add an option to disable acceleration on VIF Date: Tue, 20 May 2014 10:10:17 +0100 Message-ID: <1400577017.25175.14.camel@kazak.uk.xensource.com> References: <1400081005-23895-1-git-send-email-s.munaut@whatever-company.com> <1400081005-23895-3-git-send-email-s.munaut@whatever-company.com> <1400169446.19926.45.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wmg3x-0005wT-I7 for xen-devel@lists.xenproject.org; Tue, 20 May 2014 09:10:21 +0000 In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Sylvain Munaut Cc: xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Tue, 2014-05-20 at 09:55 +0200, Sylvain Munaut wrote: > Hi, > > >> If a kernel driver in dom0 tries to access a network service > >> running in a domU, strange things happen if the acceleration > >> is not disabled. This offers an easy option to do it. > > > > By acceleration here you mean tx checksum offload I think? > > Yes. > > > How does one go about arranging for this xenstore key to be set? > > Just like 'ip' for eg. just put it in the vif config key like : > vif = ['mac=00:16:3e:00:00:01,ip=192.168.1.254,accel=off'] Which toolstack is this with? xl won't do anything with that (I don't think...) > > The XCP vif script[0] handles a wide variety of keys via keys like > > ethtool-tx ethtool-rx etc. > > Ah yes indeed. I don't use XCP, just plain xen. Right, I was mostly trying to suggest that if we were to do something in plain Xen we should consider handling the full set as well. But... > > FWIW I think this could also be achieved locally with a script > > in /etc/xen/scripts/vif-post.d. > > Probably. I think this patch is indeed too specific to my purpose so > I'll just remove it from the series. ... fair enough! Thanks, Ian.