From patchwork Thu Sep 26 10:14:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony PERARD X-Patchwork-Id: 13813146 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 3C47ECCFA13 for ; Thu, 26 Sep 2024 10:14:55 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.805154.1216190 (Exim 4.92) (envelope-from ) id 1stlW2-0005XJ-Ti; Thu, 26 Sep 2024 10:14:30 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 805154.1216190; Thu, 26 Sep 2024 10:14:30 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1stlW2-0005XC-QW; Thu, 26 Sep 2024 10:14:30 +0000 Received: by outflank-mailman (input) for mailman id 805154; Thu, 26 Sep 2024 10:14:30 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1stlW1-0005X5-L0 for xen-devel@lists.xenproject.org; Thu, 26 Sep 2024 10:14:30 +0000 Received: from mail136-20.atl41.mandrillapp.com (mail136-20.atl41.mandrillapp.com [198.2.136.20]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 1c40525f-7bf0-11ef-99a2-01e77a169b0f; Thu, 26 Sep 2024 12:14:27 +0200 (CEST) Received: from pmta11.mandrill.prod.atl01.rsglab.com (localhost [127.0.0.1]) by mail136-20.atl41.mandrillapp.com (Mailchimp) with ESMTP id 4XDqFs6ptNzCfBb2p for ; Thu, 26 Sep 2024 10:14:25 +0000 (GMT) Received: from [37.26.189.201] by mandrillapp.com id 0e515bb817dd4bde849ec0da55019e40; Thu, 26 Sep 2024 10:14:25 +0000 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: 1c40525f-7bf0-11ef-99a2-01e77a169b0f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; s=mte1; t=1727345666; x=1727606166; bh=t2ClioiobIx8sORcFDyjTmKyeW+IX3Hdgvdic7NBgp0=; h=From:Subject:To:Cc:Message-Id:Feedback-ID:Date:MIME-Version: Content-Type:Content-Transfer-Encoding:CC:Date:Subject:From; b=pFUPgA8nKEx01y9aUaSnd+dVbk3HS/DxLLthtVc39ggaRvWL7zLzlrQRV7QHmyK2N /7Ui4Z9p+5+OHhvbNV2NTUbsHqKnojY4ZnPUegia8HrDxEXzTxbAs+JGP5SyPFhVRz RTcZzbEjX512nSE1q3tfdSczZpesnhqt538wPdD6eWiUVSpcb6+jLXL00BSNsQRkFB DlsINgswXPIulLBJp1FOAiffSTLwg0DmYsIOqn0mpf7mQkYhEUR+nEZ7D/DgL6yAHN +aVCgbT9Wgb5WAZ0Iw/5HpIPLqERTqvMI91dwE5azweBFHgfNwDuFvO8BhEatGVXT0 l8w960is2pRnA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; s=mte1; t=1727345665; x=1727606165; i=anthony.perard@vates.tech; bh=t2ClioiobIx8sORcFDyjTmKyeW+IX3Hdgvdic7NBgp0=; h=From:Subject:To:Cc:Message-Id:Feedback-ID:Date:MIME-Version: Content-Type:Content-Transfer-Encoding:CC:Date:Subject:From; b=pegrsmOW0UEDI9BmCJs532BpMEjhjpJcOdMuH5NoowQBcfxXIsaepG6uUJ4OjLQSU kspkoJ7JaiyMim2dkY/ijYi/N0+9CHzTH5b3vzgnJnGlfyIEVHFn+MvAAOAg3NX4Mn YME+llV+tFXJTgiYrJ4GlytXx3r9b970j/kUL37wGPT2Uq1AMJ4Qg3rZhScsDemPK6 dk6dcV+/yza4e8EwMwsCgGyomui/eVMORkBvL7Rtlm2/t8Gtc2sq4G1I6m103U/0p3 Y0SybHVkNLQT7IgdVfGiXN7TkuGSxvsgv9JzFGPX/nRXumQwq9qGXf3U0a6GXVSZUN j94XmpeGPnE3w== From: Anthony PERARD Subject: =?utf-8?q?=5BPATCH_0/2=5D_Xen=3A_Update_sector-size_handling_in_blo?= =?utf-8?q?ck_backend?= X-Mailer: git-send-email 2.39.2 X-Bm-Disclaimer: Yes X-Bm-Milter-Handled: 4ffbd6c1-ee69-4e1b-aabd-f977039bd3e2 X-Bm-Transport-Timestamp: 1727345665088 To: qemu-devel@nongnu.org Cc: Anthony PERARD , "Edgar E. Iglesias" , Kevin Wolf , Hanna Reitz , Paul Durrant , Stefan Hajnoczi , Anthony PERARD , xen-devel@lists.xenproject.org, Stefano Stabellini , qemu-block@nongnu.org Message-Id: <20240926101334.2388-1-anthony.perard@vates.tech> X-Native-Encoded: 1 X-Report-Abuse: =?utf-8?q?Please_forward_a_copy_of_this_message=2C_including?= =?utf-8?q?_all_headers=2C_to_abuse=40mandrill=2Ecom=2E_You_can_also_report_?= =?utf-8?q?abuse_here=3A_https=3A//mandrillapp=2Ecom/contact/abuse=3Fid=3D30?= =?utf-8?q?504962=2E0e515bb817dd4bde849ec0da55019e40?= X-Mandrill-User: md_30504962 Feedback-ID: 30504962:30504962.20240926:md Date: Thu, 26 Sep 2024 10:14:25 +0000 MIME-Version: 1.0 The specification have been clarified regarding what "sector" is in Xen PV block protocol by Xen commit 221f2748e8da ("blkif: reconcile protocol specification with in-use implementations") and "feature-large-sector-size" have been removed. https://xenbits.xenproject.org/gitweb/?p=xen.git;a=commit;h=221f2748e8dabe8361b8cdfcffbeab9102c4c899 This update the header and the backend. Thanks, Anthony PERARD (2): include: update Xen public headers io/blkif.h hw/block/xen-block: Update sector-size handling hw/block/dataplane/xen-block.c | 31 ++++++++++++----- hw/block/xen-block.c | 8 ++--- include/hw/xen/interface/io/blkif.h | 52 +++++++++++++++++++++-------- 3 files changed, 65 insertions(+), 26 deletions(-)