From owner-soc-status@FreeBSD.ORG Thu Apr 18 13:16:24 2013 Return-Path: Delivered-To: soc-status@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 701B7B83; Thu, 18 Apr 2013 13:16:24 +0000 (UTC) (envelope-from gbtju85@gmail.com) Received: from mail-bk0-x22b.google.com (mail-bk0-x22b.google.com [IPv6:2a00:1450:4008:c01::22b]) by mx1.freebsd.org (Postfix) with ESMTP id 25786D70; Thu, 18 Apr 2013 13:16:22 +0000 (UTC) Received: by mail-bk0-f43.google.com with SMTP id jm19so64653bkc.2 for ; Thu, 18 Apr 2013 06:16:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=YkgCMnMj/08JROI5IN05e7Ez8cmCrM65rLn/Jp8QnHU=; b=0EAB2U/+wMn93WQihobHfa2/uLZ7NEOBYdhqiERVLLo3uFV2dr9QePMbHChI9udxMD 3SsQgVhe9jeu3aUSCOuV+BxiEH+uMUvk6e1b7gMAPf9VbAb6G/d7gN5sDRPwoqD302La O05njJChh7b1576/4vDckKdbsdNuofy6F9cv1w7syOJhFMYZ3J8u2hNT2Wilpjo6451/ kHrpxlQmXh7MKmxyapAjTSzk7ePD1/sNTDjhUrPbTGG30y4UCHZnmTfgOxWZVLSLfy7W 4ce5sokDj5s0PlH8BdL29f57ls/EN7siSm5zOITZGcx6CskdPErUT8+KxwG7helVJT8i A1cw== MIME-Version: 1.0 X-Received: by 10.204.245.201 with SMTP id lv9mr3932916bkb.102.1366290982140; Thu, 18 Apr 2013 06:16:22 -0700 (PDT) Received: by 10.205.114.141 with HTTP; Thu, 18 Apr 2013 06:16:21 -0700 (PDT) In-Reply-To: References: <920A79FE-8C56-4D26-8611-3CD48602FC3B@freebsd.org> <7AB96913-9118-4298-B183-A3D5EBC6F209@freebsd.org> Date: Thu, 18 Apr 2013 21:16:21 +0800 Message-ID: Subject: =?GB2312?Q?Re=3A_Mentor_of_the_Project_=22PCI_frontend_XEN_PV_drive?= =?GB2312?Q?r=22=A3=BF?= From: Bei Guan To: "Justin T. Gibbs" Content-Type: multipart/mixed; boundary=f46d041c45baa6b51504daa268a0 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: soc-status X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Apr 2013 13:16:24 -0000 --f46d041c45baa6b51504daa268a0 Content-Type: text/plain; charset=ISO-8859-1 The attachment is the boot output of the 32-bit FreeBSD compiled with XENHVM config. 2013/4/18 Bei Guan > > > > 2013/4/16 Justin T. Gibbs > > On Apr 12, 2013, at 3:02 AM, Bei Guan wrote: >> >> > Thank you for your reply. >> > >> > I think it's also a good project for me to write a SCSI or USB PV >> frontend for FreeBSD. I'm interest in Xen and have done some development >> about Xen PV and HVM, but I didn't do any development on FreeBSD. As to >> this project, where should I start? Is there any other similar FreeBSD >> project I can refer to? >> >> Front-end drivers for network, block, and control already exist and >> should serve as a good starting point for the creation of another PV driver. >> >> I've also updated the ideas page to include more information about our >> existing XEN implementation and what will be required for these projects. >> >> > In order to write a SCSI or USB PV driver, do we need the Xen PV >> drivers in FreeBSD, such as event channel, hypercalls, xenbus, and so on? >> >> Yes, FreeBSD already has support for all XenBus APIs needed to write >> these drivers. See "sys/xen" and "sys/dev/xen" in the FreeBSD kernel >> source tree. >> >> > You said the "drivers can be developed using an HVM guest", can you >> give me more information about it? >> >> Typically, you install FreeBSD using standard install media as a full HVM >> guest on a system running Xen. Then compile a custom kernel using the >> XENHVM config file in order to activate the existing PV drivers. >> > Hi Justin, > > Does this project need to provide USB/SCSI PV drivers to both 32-bit and > 64-bit FreeBSD? > I've compiled the FreeBSD 8.3 (i386) as Xen DomU with the XENHVM config. > But, It cannot boot successfully. The screenshot is attached. > According to the page https://wiki.freebsd.org/FreeBSD/Xen , 32-bit > FreeBSD should work when compiled with XENHVM config. > > I will try the 64-bit FreeBSD. However, if the FreeBSD boot successfully > (compiled with XENHVM config), how can we know it really uses the PV > drivers instead of the native drivers? > > > Thanks, > Bei Guan > > > >> >> -- >> Justin >> >> > > -- Best Regards, Bei Guan --f46d041c45baa6b51504daa268a0--