From: "Jan Beulich" Subject: Re: Xen's Linux kernel config options V2 Date: Wed, 04 Feb 2015 08:29:58 +0000 Message-ID: <54D1E696020000780005CAB3@mail.emea.novell.com> References: <54905BF1.2050608@suse.com> <20150109190200.GA4083@l.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "Luis R. Rodriguez" Cc: Juergen Gross , "xen-devel@lists.xensource.com" , "Ian.Campbell@citrix.com" , Stefano Stabellini , Luis Rodriguez , David Vrabel , Boris Ostrovsky List-Id: xen-devel@lists.xenproject.org >>> On 04.02.15 at 01:48, wrote: > So as I see it XEN_BALLOON should depend on XEN_PV || XEN_PVH -- not > sure how ballooning would be used on HVM only domains although right > now ballooning would indeed be initialized in such situations, should > it not? If it should not then the above check should be for > xen_pvh_domain() not just xen_domain(). If it should work for hvm > domains too we could perhaps use XEN_BACKEND || XEN_FRONTEND. Why do you think HVM can't use ballooning? > As for XENFS we have the same check on init for xen_domain(), we only > have a small difference for two types of cases. If your kernel > supports XEN_DOM0 you also get exposed on the xenfs the xsd_kva and > xsd_port which correspond to the xen_store_evtchn and > xen_store_interface respectively. Does it make sense to expose xenfs > for hvms? If so under this new arrangement perhaps it should depend on > XEN_BACKEND || XEN_FRONTEND ? In general I think options should be hidden only if they can't work in certain cases. > XEN_SYS_HYPERVISOR just populates the generic /sys/hypervisor/ and > also extends it with Xen specific information, its initialization also > depends on xen_domain() but I cannot think of a reason to have this > for HVM. Perhaps this should depend on XEN_BACKEND only ? Again - don't hide options that may end up being useful, unless there is a reason they can't possibly work. >>> XEN_DEV_EVTCHN >> >> Frontends and backends select this? > > This registers /dev/xen/evtchn only if we're in xen_domain(). Do we > want this to user visible selectable option and have it depend on > XEN_BACKEND || XEN_FRONTEND ? I think this can be useful even without any (kernel based) backends or frontends (e.g. for user mode ones). It's also needed for certain daemons. >>> XEN_GNTDEV >> >> Backend should select this? > > Based on my review I would think that this should depend on > XEN_BACKEND but be user selectable. I'm hoping Stefano can best decide > this though. Just like for the evtchn device, this is useful to user mode even without any kernel based backends. >>> XEN_TMEM >>> XEN_PRIVCMD >> >> Backend select this? Why? There's no connection between these and backend functionality. Jan