From owner-soc-status@freebsd.org Mon May 28 05:53:52 2018 Return-Path: Delivered-To: soc-status@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BCB54EFA5AB for ; Mon, 28 May 2018 05:53:52 +0000 (UTC) (envelope-from pratiy0100@gmail.com) Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BB177D8B7; Mon, 28 May 2018 05:53:52 +0000 (UTC) (envelope-from pratiy0100@gmail.com) Received: by mail-wm0-f48.google.com with SMTP id a67-v6so28791547wmf.3; Sun, 27 May 2018 22:53:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=nlGjp9+dc30uuoO5wnuadk6MtOEtPDEFbsHGPz3Esc4=; b=aaq+bPL4sbXOjB4X7T+CagtZYBTDYQfWOzBSVwX5Z5vGinPDq3zgxYXunm3BPy6g0Z qOCtbHpm4BQlmJ/aiGrcPBLviLwzORID51euWBRY8KYE3W8cIt+iPPvbNoAeF3e4okOR GI7U4Bt1gnly9v6o/fCQWtSAMXO+wvLVip4hrW6Mc9s4SVA/IH1qbScnX6PPx8EWayW4 RNzCcmz5w+HrXMDdvWuiDO/encTglQ/b5Zarv7IkQ/6VjsFWaf+RK8VLFkxWTg03VIYR 99SUfS1oe/PcC+W1KbMGb7UimdqlDZ4oWFK56OgSlhnUatv9qkCeRDVGF7ou10m9oIIm dKcA== X-Gm-Message-State: ALKqPwdpWhBzG9+mHbK40bzuDZ+oyleXAgYOfoKVVXqid/Eyuj5RrX+L pXkfYMGoZuHO3s7glYFCt75tJt1E X-Google-Smtp-Source: ADUXVKJujyiSLR7Cyc4CkMw56F94Ie9m/1APAYOvfVjR5CxumzeS6+I6JwWONQ8vKeFjH1t7rGDsFw== X-Received: by 2002:a50:cd03:: with SMTP id z3-v6mr5445713edi.118.1527486824875; Sun, 27 May 2018 22:53:44 -0700 (PDT) Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com. [74.125.82.45]) by smtp.gmail.com with ESMTPSA id h39-v6sm191758edb.65.2018.05.27.22.53.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 May 2018 22:53:44 -0700 (PDT) Received: by mail-wm0-f45.google.com with SMTP id x2-v6so21427224wmh.5; Sun, 27 May 2018 22:53:44 -0700 (PDT) X-Received: by 2002:a50:ad69:: with SMTP id z38-v6mr13516013edc.306.1527486824000; Sun, 27 May 2018 22:53:44 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a50:aa21:0:0:0:0:0 with HTTP; Sun, 27 May 2018 22:53:03 -0700 (PDT) From: Pratyush Yadav Date: Mon, 28 May 2018 11:23:03 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: [Week 2] Import the Xen grant-table bus_dma(9) handlers from OpenBSD To: soc-status@freebsd.org Cc: Edward Napierala , Akshay Jaggi Content-Type: text/plain; charset="UTF-8" X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.26 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: Mon, 28 May 2018 05:53:52 -0000 Hi, I spent this week on writing rough initial implementations of the Xen-specific grant table handlers imported from OpenBSD. I spent a lot of time understanding the differences in OpenBSD and FreeBSD's grant-table interface. They turn out to be more different than I anticipated. After that we encountered some design decisions. Since the bus_dma(9) interface in FreeBSD is quite different from the OpenBSD counterpart, some design choices had to be made. I am still in talks with my mentors about it. I also produced rough implementations of the grant table handlers. These are not yet complete. There are a lot of rough edges to polish. Check out the implementations in my GitHub fork [0]. Unrelated to the project, I submitted a diff to remove some leftover function prototypes from the grant table header file gnttab.h [1]. I maintain a blog on Blogger where I publish my progress every few days. Check it out if you want more details on what I'm doing [2]. Regards, Pratyush Yadav [0] https://github.com/prati0100/freebsd/tree/projects/xen_bus_dma [1] https://reviews.freebsd.org/D15553 [2] http://pratyushgsoc.blogspot.in/2018/05/import-xen-grant-table-busdma9-handlers.html