From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: [PATCH 0 of 3] Patches when Linux Xen drivers are modules. Date: Tue, 22 Dec 2009 16:48:55 -0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com, keir.fraser@eu.citrix.com Cc: konrad.wilk@oracle.com List-Id: xen-devel@lists.xenproject.org Keir, and Xen-devel mailing list, Attached are three patches that help Dom0 and DomU respectivly when both Xen backend and Xen-frontend drivers are modules. a) The first two are to make 'xen-detect' be more useful in initrd /initramfs situations. It can return 1 when running in PV context, 2 in HVM context, and 0 if Xen has not been detected. Also there are three arguments: -P, -H, and -N, which will print a string value if we are in either PV, HVM or no Xen context, respectivly. An example user of this patch to Fedora's dracut: http://article.gmane.org/gmane.linux.kernel.initramfs/1252 b) The xend init script is to load backend drivers if they are modules.