From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 00DB8C433EF for ; Fri, 15 Apr 2022 09:23:29 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.305659.520743 (Exim 4.92) (envelope-from ) id 1nfIAh-0006sE-Al; Fri, 15 Apr 2022 09:23:19 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 305659.520743; Fri, 15 Apr 2022 09:23:19 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nfIAh-0006s5-6m; Fri, 15 Apr 2022 09:23:19 +0000 Received: by outflank-mailman (input) for mailman id 305659; Fri, 15 Apr 2022 09:23:18 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nfIAg-0006hY-I9 for xen-devel@lists.xenproject.org; Fri, 15 Apr 2022 09:23:18 +0000 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [2a00:1450:4864:20::62c]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id aef3a49e-bc9d-11ec-a405-831a346695d4; Fri, 15 Apr 2022 11:23:17 +0200 (CEST) Received: by mail-ej1-x62c.google.com with SMTP id k23so14484173ejd.3 for ; Fri, 15 Apr 2022 02:23:17 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id ck5-20020a0564021c0500b00420b49ba80fsm2423370edb.24.2022.04.15.02.23.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 02:23:15 -0700 (PDT) Received: from zen (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id B279B1FFB7; Fri, 15 Apr 2022 10:23:14 +0100 (BST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: aef3a49e-bc9d-11ec-a405-831a346695d4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=w667gKYBbDBTMCfXxJDqMeQkVCc8+IrorrB4oS1oJ5E=; b=a1GWJXNhyAXH5ruzAaxXwsuOH1eqRjJ2MKQAhRi/ipCf16gTMLgrPbZOhNKePB24Pf 5z9Om4c2T6IDo78fsg/z08IDdB40iGCMN2YeXLaIKrg1Fj/G23HI463LKAiwvFgTQRqP eJzHWYKGIr3jR0zbeVtIiGY53hVBuQ1I5CKaknhuzQIprb+fZyHxuMfD9mL32g9QbVHD 2kCYr8j+kTuH7NkE5D7cxwS8r3rJbGqVSfkoNJQ2y9HtndrWcEKX63X+n17IPPIO6BCs /8taSqZvn0E3yaSCWZP9/0FOSQTcWekteBTpolr69ddPZOVdY6BSh+8K2UXVm38Px7kh RaRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version:content-transfer-encoding; bh=w667gKYBbDBTMCfXxJDqMeQkVCc8+IrorrB4oS1oJ5E=; b=HXkcrdn5zKRuTP/kBJjCYiNR3w0IfFa8+woZEKsVidxnyLHUHDHp/3jpyTY7M0oGe6 xlDnuARrYKtdR90ObyJZFzc6r2CRQYhrXb0jXTxd3wGdL747qmrN8k6n5gZqRTIen3fu vLK4L+5T8UkeH5bvJaROORoj5oG+d9yaI5Zg5OO7He6dfEKGlcseLEnOzJi+3lsF/Xrs Bao0Bh8j+S3B5XBCD6CZu0H05CE7+HvhRs5TYN+DcSQx0dg0vK/e/Nm2BCfmgmv0SLQC xDr3Ven2ijNuMjS4vF9khwDEyaYTdv6YVvD+oCLfAz0QbOo6parqndexcLMZ/bDv+yOf J4kA== X-Gm-Message-State: AOAM532riNQPTcndSdxK0IgaUp9IQRFx0bJBYjvxkfGLMcq7UDCruhPT is/+955/DKR+Kw3pXWrlPIq7MA== X-Google-Smtp-Source: ABdhPJxUyhO5yAboBwLOcBNkKmseAjK+8zK18o9n0eLHUP9gS4AfNzZPnXiso3pb9aw5D1JuttK3+Q== X-Received: by 2002:a17:906:704f:b0:6e0:2ce5:131e with SMTP id r15-20020a170906704f00b006e02ce5131emr5321502ejj.246.1650014596978; Fri, 15 Apr 2022 02:23:16 -0700 (PDT) References: <87pmsylywy.fsf@linaro.org> <874ka68h96.fsf@linaro.org> <1d6382b6-ddf8-494c-4f7b-afc50a4269a4@gmail.com> User-agent: mu4e 1.7.12; emacs 28.1.50 From: Alex =?utf-8?Q?Benn=C3=A9e?= To: Oleksandr Tyshchenko Cc: xen-devel , Rust-VMM Mailing List , Stratos Mailing List , Christopher Clark , Marek =?utf-8?Q?Marczykowski-G=C3=B3reck?= =?utf-8?Q?i?= , Artem Mygaiev , Sergio Lopez , Wei Liu , Stefan Hajnoczi , Doug Goldstein , Andrew Cooper , Arnd Bergmann , David Woodhouse , Rich Persaud , Daniel Smith , Paul Durrant , openxt , Julien Grall , Juergen Gross , Stefano Stabellini Subject: Re: [Stratos-dev] Xen Rust VirtIO demos work breakdown for Project Stratos Date: Fri, 15 Apr 2022 10:07:09 +0100 In-reply-to: Message-ID: <87pmlisnst.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Oleksandr Tyshchenko writes: > Hello all. > > [Sorry for the possible format issues] > > I have an update regarding (valid) concern which has been also raised in = current thread which is the virtio backend's ability (when using > Xen foreign mapping) to map any guest pages without guest "agreement" on = that. > There is a PoC (with virtio-mmio on Arm) which is based on Juergen Gross= =E2=80=99 work to reuse secure Xen grant mapping for the virtio > communications. > All details are at: > https://lore.kernel.org/xen-devel/1649963973-22879-1-git-send-email-oleks= tysh@gmail.com/ > https://lore.kernel.org/xen-devel/1649964960-24864-1-git-send-email-oleks= tysh@gmail.com/ Thanks for that. I shall try and find some time to have a look at it. Did you see Viresh's post about getting our rust-vmm vhost-user backends working on Xen? One thing that came up during that work was how guest pages are mapped into the dom0 domain where Xen needs to use kernel allocated pages via privcmd rather than then normal shared mmap that is used on KVM. As I understand it this is to avoid the situation where dom0 may invalidate a user PTE causing issues for the hypervisor itself. At some point we would like to fix that wrinkle so we can remove the (minor) hack in rust-vmm's mmap code to be truly hypervisor agnostic.=20 Anyway I hope you and your team are safe and well. --=20 Alex Benn=C3=A9e