Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754664AbaADAaW (ORCPT ); Fri, 3 Jan 2014 19:30:22 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:44570 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754589AbaADAaS (ORCPT ); Fri, 3 Jan 2014 19:30:18 -0500 Date: Fri, 3 Jan 2014 16:29:04 -0800 From: Mukesh Rathor To: Stefano Stabellini Cc: Konrad Rzeszutek Wilk , , , , , Subject: Re: [Xen-devel] [PATCH v11 09/12] xen/pvh: Piggyback on PVHVM XenBus and event channels for PVH. Message-ID: <20140103162904.5b51041f@mantra.us.oracle.com> In-Reply-To: References: <1387313503-31362-1-git-send-email-konrad.wilk@oracle.com> <1387313503-31362-10-git-send-email-konrad.wilk@oracle.com> <20131231185656.GB3129@phenom.dumpdata.com> Organization: Oracle Corporation X-Mailer: Claws Mail 3.9.2 (GTK+ 2.18.9; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Source-IP: ucsinet21.oracle.com [156.151.31.93] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1653 Lines: 50 On Fri, 3 Jan 2014 15:04:27 +0000 Stefano Stabellini wrote: > On Tue, 31 Dec 2013, Konrad Rzeszutek Wilk wrote: > > > > --- a/drivers/xen/xenbus/xenbus_client.c > > > > +++ b/drivers/xen/xenbus/xenbus_client.c > > > > @@ -45,6 +45,7 @@ > > > > #include > > > > #include > > > > #include > > > > +#include > > > > > > > > #include "xenbus_probe.h" > > > > > > > > @@ -743,7 +744,7 @@ static const struct xenbus_ring_ops > > > > ring_ops_hvm = { > > > > void __init xenbus_ring_ops_init(void) > > > > { > > > > - if (xen_pv_domain()) > > > > + if (xen_pv_domain() > > > > && !xen_feature(XENFEAT_auto_translated_physmap)) > > > > > > Can we just change this test to > > > > > > if (!xen_feature(XENFEAT_auto_translated_physmap)) > > > > > > ? > > > > No. If we do then the HVM domains (which are also !auto-xlat) > > will end up using the PV version of ring_ops. > > Actually HVM guests have XENFEAT_auto_translated_physmap, so in this > case they would get &ring_ops_hvm. Right. Back then I was confused about all the other PV modes, like shadow, supervisor, ... but looks like they are all obsolete. It could just be: if (!xen_feature(XENFEAT_auto_translated_physmap)) ring_ops = &ring_ops_pv; else ring_ops = &ring_ops_hvm; thanks, Mukesh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/