From patchwork Thu Mar 9 08:50:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 13167009 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.gnu.org (lists.gnu.org [209.51.188.17]) (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 E69DCC6FD19 for ; Thu, 9 Mar 2023 08:52:28 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1paBzV-0007pm-Ir; Thu, 09 Mar 2023 03:51:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1paBzU-0007ou-Bi for qemu-devel@nongnu.org; Thu, 09 Mar 2023 03:51:12 -0500 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1paBzR-00024B-Js for qemu-devel@nongnu.org; Thu, 09 Mar 2023 03:51:12 -0500 Received: by mail-pl1-x62a.google.com with SMTP id n6so1262939plf.5 for ; Thu, 09 Mar 2023 00:51:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678351867; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=YtzXHGHMS64VogkrKd3Ei8P73aUrg9lW5cX1ATCVQYo=; b=eFOuzm8nD7a5HidSqF7eFTA1nvdUol1ji6xW6YQNmLzmVO7oLym7uEt/O8FALVrsrj FzGlJjpPSszYsxPfAC8PXdystVBhFyStdRVTiCArCS3CggGUweI2tlTOyMSQBYSRkcbw +UaYc1kRN5AU+H4rRcqssppbBmAOojcXwUJK1m7XOCCn2gW5xHw/gDnmt++tkFC1J7jg GKzpm1mPVnLWFhiknRcHxUlu3OUW1UPkZbfCAPQ+jQnUaW7AGcWGZ5399JShxvbT0AEf dvU+zvi5rRSvbOIkxyV+9cGwEskJG8HmsyNDAxavhak1+JB/Oq2eNJMI9On6emuN25mK fc2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678351867; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YtzXHGHMS64VogkrKd3Ei8P73aUrg9lW5cX1ATCVQYo=; b=v1zr87yIOnWf18wPl1scW6vPhMzc/ZZroWc0DDerCuJuJJuBOPkLpoMKw4MWhTIFyh q+c3FEhZ/giVMSUQTmshsdsH/guOy7tW3R2nHLgWKkN7tHyYInB4d4LfPNDELJ7ANYom i8D19UGie9rjoqVhj13z7qpvBxgIZtNsTsskkO/I7YKYmkJV6uJO7ssyxKOxClX1SimS COMFAvaxvqMS/26NHeGGN2CwN85zskwXwhzBcLz4ceE4wIBj/dBiaSkgoIHFgENcHAZh 8x79iLWPpds3lHw73hnk3Hz92G3B2M2XdH9q1FglKryMrQWLXRgEIhzOKVTDl1rTXtTy u4XA== X-Gm-Message-State: AO0yUKWMV3/7m3ouYkOUXB+hYZ2hjN5Rbz6T4jQ9Ir9jNqGZZo8QWfY2 LwWE2tIBktjyrvIm60Ko2eK6nss/hArJp60dAKU= X-Google-Smtp-Source: AK7set82c8nTI8LDr+yjMnggASdbq6ivX+wK6RPkhvCxpvT+V+TAj3Gj4shp7wy6TtmXW50qCtK/Eg== X-Received: by 2002:a17:90b:4a4c:b0:237:9cc7:28a4 with SMTP id lb12-20020a17090b4a4c00b002379cc728a4mr22372080pjb.14.1678351867185; Thu, 09 Mar 2023 00:51:07 -0800 (PST) Received: from localhost ([122.172.83.155]) by smtp.gmail.com with ESMTPSA id nu14-20020a17090b1b0e00b002339195a47bsm1067154pjb.53.2023.03.09.00.51.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 00:51:06 -0800 (PST) From: Viresh Kumar To: qemu-devel@nongnu.org, virtio-dev@lists.oasis-open.org, Stefan Hajnoczi , "Michael S. Tsirkin" Cc: Viresh Kumar , Vincent Guittot , =?utf-8?q?Alex_Benn=C3=A9e?= , stratos-dev@op-lists.linaro.org, Oleksandr Tyshchenko , xen-devel@lists.xen.org, Andrew Cooper , Juergen Gross , Sebastien Boeuf , Liu Jiang , Mathieu Poirier Subject: [PATCH V3 0/2] qemu: vhost-user: Support Xen memory mapping quirks Date: Thu, 9 Mar 2023 14:20:59 +0530 Message-Id: X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=viresh.kumar@linaro.org; helo=mail-pl1-x62a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Hello, This patchset tries to update the vhost-user protocol to make it support special memory mapping required in case of Xen hypervisor. The first patch is mostly cleanup and second one introduces a new xen specific feature. V2->V3: - Remove the extra message and instead update the memory regions to carry additional data. - Drop the one region one mmap relationship and allow back-end to map only parts of a region at once, required for Xen grant mappings. - Additional cleanup patch 1/2. V1->V2: - Make the custom mmap feature Xen specific, instead of being generic. - Clearly define which memory regions are impacted by this change. - Allow VHOST_USER_SET_XEN_MMAP to be called multiple times. - Additional Bit(2) property in flags. Viresh Kumar (2): docs: vhost-user: Define memory region separately docs: vhost-user: Add Xen specific memory mapping support docs/interop/vhost-user.rst | 60 ++++++++++++++++++++++++------------- 1 file changed, 39 insertions(+), 21 deletions(-) Acked-by: Michael S. Tsirkin