From owner-soc-status@FreeBSD.ORG Thu Aug 15 09:35:12 2013 Return-Path: Delivered-To: soc-status@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CD6A8A10 for ; Thu, 15 Aug 2013 09:35:12 +0000 (UTC) (envelope-from syuu@dokukino.com) Received: from mail-pd0-x22b.google.com (mail-pd0-x22b.google.com [IPv6:2607:f8b0:400e:c02::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A4CA922E0 for ; Thu, 15 Aug 2013 09:35:12 +0000 (UTC) Received: by mail-pd0-f171.google.com with SMTP id g10so632264pdj.2 for ; Thu, 15 Aug 2013 02:35:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dokukino.com; s=google; h=mime-version:from:date:message-id:subject:to:content-type; bh=uUTFOLG97ZRWe8GB8FQfXGr0XhSbqobIFpJvtKpWQUg=; b=BATN+RGJDHek9mcVn262Mtv3D4T2DbijarY+PDWC0FVKnlGT9HYH4DkQKNcMCjChW3 wYLyhVXxu7GutjDGO0+5wSwr8QBYI9Dhsvw0u2So+W1vK+v+uxZAJ2lZunMNgL2qWqER ESEVCzIjKK2BHLoo6Jx0KRPeNsJBXWCpthTSI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=uUTFOLG97ZRWe8GB8FQfXGr0XhSbqobIFpJvtKpWQUg=; b=hnVLr5DqgXRpIcSEt2dONhtnSnbF402UUg7E/8YPhzedKjBb+ohb7NVZ9Ln8IKSq6Y EXJWEYblgViiMoOCQ0tuYmlIkDLvRLHC6f5Yiytv/VU1xh0OfemmCJv45RPS7HVRO/yY o8IOb2mxfjJoy5qzdDZ7SYKkdCjEtz0tW/pWhyLqUCN2fBtAb19KK7zFjCy63i+Tw4nP g8IoNJFILRLHK22mDljUDRsph23xoIPb4venri67qxHl4ZazQPSuDkyQl63MZcHFV6y1 Z0m+/qwPEzovLf2eMDH5ajc9IT5fhmqPX4Ydx9Q9Bcqp16osJY09/eUIeZOPtjONRgmd NB1w== X-Gm-Message-State: ALoCoQk6hCNLT1RXy43AOJiFsRarG9Z5tJzEpzEMrQZPi2BS+5VFIMi8Tt0CvZTcR9gE/KbgTzHa X-Received: by 10.66.142.42 with SMTP id rt10mr14394002pab.1.1376559312203; Thu, 15 Aug 2013 02:35:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.245.226 with HTTP; Thu, 15 Aug 2013 02:34:32 -0700 (PDT) From: Takuya ASADA Date: Thu, 15 Aug 2013 18:34:32 +0900 Message-ID: Subject: [status report #6 & #7 & #8] To: "soc-status@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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, 15 Aug 2013 09:35:12 -0000 Sorry for not sending reports for a while. [project summary] The project goal is to support USB 1.1/2.0 device passthrough on BHyVe. [weekly status] * USB base API Realized some APIs in USB stack are GPL licensed. I couldn't realized when I wrote proposal, but there are some codes in USB stack are (L)GPL licensed. (Some files does not say what license are they using, but when it doesn't say which license, it probably under the GPL, according QEMU's license description.) http://lxr.missinglinkelectronics.com/qemu/hw/usb/desc.c http://lxr.missinglinkelectronics.com/qemu/hw/usb/desc.h http://lxr.missinglinkelectronics.com/qemu/hw/usb/bus.c I was considering to re-implement these codes under the BSDL, but I decided to port these GPLed code first, re-implement these after USB emulation get worked on BHyVe. All (L)GPL are moved to usr.sbin/bhyve/usb/gpl. * UHCI controller pci_dma_read()/pci_dma_write() implementation on hcd-uhci.c. Implemented them using paddr_guest2host and memcpy. * USB passthrough device QEMU's USB device passthrough function is not able to compile on FreeBSD-current, due to USB stack API changes. QEMU has FreeBSD host support on hw/usb/host-bsd.c, it's issues ioctl to ugen(4) and usb(4). These codes call old API, does not able to compile newer kernel. http://svnweb.freebsd.org/ports?view=revision&revision=234988 I couldn't find a patch for this, I'm decided to use hw/usb/host-libusb.c with libusb(3). Even host-libusb.c doesn't supported/tested FreeBSD's libusb, fixed to make it able to compile. host-libusb.c porting work is not completed, need some more work to make it work. Not tested, need some more work to make it work. * HUB emulation Started porting hw/usb/dev-hub.c. Not tested, need some more work to make it work. * USB serial converter emulation Started porting hw/usb/dev-serial.c and include/sysemu/char.h. dev-serial.c is LGPL licensed, char.h is GPL licensed. Now I'm focusing to attach this device on UHCI controller.