Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753364AbbKGMYK (ORCPT ); Sat, 7 Nov 2015 07:24:10 -0500 Received: from mail-oi0-f42.google.com ([209.85.218.42]:36147 "EHLO mail-oi0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751378AbbKGMYE (ORCPT ); Sat, 7 Nov 2015 07:24:04 -0500 MIME-Version: 1.0 In-Reply-To: <1446582059-17355-20-git-send-email-octavian.purdila@intel.com> References: <1446582059-17355-1-git-send-email-octavian.purdila@intel.com> <1446582059-17355-20-git-send-email-octavian.purdila@intel.com> Date: Sat, 7 Nov 2015 13:24:03 +0100 Message-ID: Subject: Re: [RFC PATCH 19/28] lkl tools: host lib: virtio block device From: Richard Weinberger To: Octavian Purdila Cc: Linux-Arch , LKML , thehajime@gmail.com, Anton Ivanov Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1385 Lines: 37 On Tue, Nov 3, 2015 at 9:20 PM, Octavian Purdila wrote: > Host independent implementation for virtio block devices. The host > dependent part of the host library must provide an implementation for > lkl_dev_block_ops. > > Disks can be added to the LKL configuration via lkl_disk_add(), a new > LKL application API. > > Signed-off-by: Octavian Purdila > --- > tools/lkl/include/lkl.h | 20 ++++++++ > tools/lkl/include/lkl_host.h | 21 ++++++++ > tools/lkl/lib/virtio_blk.c | 116 +++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 157 insertions(+) > create mode 100644 tools/lkl/lib/virtio_blk.c Can you please outline what the differences between this driver and UML's block driver are? While UML and LKL have different goals they could at least share some drivers. UML also has networking drivers you could reuse. Maybe it would make sense to integrate LKL completely into arch/um if we find a nice way to combine them. CONFIG_UML_LIBRARY, hmm? Would be a nice opportunity to clear away some dung from arch/um and refactor it. :-) -- Thanks, //richard -- 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/