From patchwork Fri Mar 4 13:40:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael S. Tsirkin" X-Patchwork-Id: 548122 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6713:0:0:0:0 with SMTP id u19csp59524mag; Fri, 4 Mar 2022 06:20:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwBw9ggHt1Io2yr6lSCkYrg7R8yaNSgMa3oInfkuucnFfXRuzxgXXfKvV5KCW9GWLq5vFnk X-Received: by 2002:a5b:a0d:0:b0:622:6203:ab21 with SMTP id k13-20020a5b0a0d000000b006226203ab21mr37433490ybq.502.1646403657066; Fri, 04 Mar 2022 06:20:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646403657; cv=none; d=google.com; s=arc-20160816; b=yxZ+PfEcaoWzomGztmSRSv1Mb8x22DLl7Uhkxl03/yMTOt25oEk8GSaxsn4pyA0lPr OHoCklNwKBmSmowa3zniurzu43lpv/YPN47XlPzcNtwe8A2KreUf8iWrznFfcVHziUkW ZDY64P/3+64Z4KAR8OaphVndb9jYFKTXmru/2tRM56cYyOQh6fDZ4TJ2biNQqgEPkFCH iK05SKEIDrIxCN4OQb2zwVgAZgs1nfmYxoyfmv9qknuIMNEoyJhQNJX97Rt4Ux6kyKeD TheUacZouiMsXNclLY3WrJjHFXlnPvjundyvwv0zK1FCf24xUtxvrPZQPcpTUEdurULC 8h0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-disposition:in-reply-to :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=wqPGtWFCVDPRGhVgRp/c/kDyoLIXiZZqdrhcBaAKsjU=; b=lupzRnVR6Lhk2DJVCvNZ1Yg/wFWAIKdhtXVvb2Rya4kg8xgv98fIcHCJ7LZV8PBBPy w656JkVr503g+hb5AGJM08lLgt5Iivkr+p393z5yf3jY4kepylITIX6iX2geRaEiVY+c DLbb/W1DOjL/7RxsxKMRDJEiEUzGzOyFpPUcgiaWB9vY77aQ59bBC/tdlWsbZra94ggh syIb71aN6NSCQquViQ0FGZiGTYSJWCGta5HpeP8I/id9HqqgoDqC73R9ZUJNfxmmj7ui VhH87nDsYgZs8jx9DFAmIS0Ng8Y+1NFHOtTEohZn8gIFs6IyiJOYeB/ApLdwIXER3LuW dZDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@redhat.com header.s=mimecast20190719 header.b=JT+J2VJZ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id q128-20020a818086000000b002d695489be8si4415586ywf.457.2022.03.04.06.20.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 04 Mar 2022 06:20:57 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@redhat.com header.s=mimecast20190719 header.b=JT+J2VJZ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1]:39508 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nQ8ng-0002n3-Fj for patch@linaro.org; Fri, 04 Mar 2022 09:20:56 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56508) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQ8AX-0002sm-S6 for qemu-devel@nongnu.org; Fri, 04 Mar 2022 08:40:29 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:49751) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQ8AW-0000vj-9F for qemu-devel@nongnu.org; Fri, 04 Mar 2022 08:40:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646401227; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wqPGtWFCVDPRGhVgRp/c/kDyoLIXiZZqdrhcBaAKsjU=; b=JT+J2VJZxIsYuaooEigUjycdSWnbOwMzOF57Pdx2da1ZzjWu2Ue6+9pWSfXGXeTUuVe6wy sHl6qyd80vVmTN1d+8nSvx9jwevhv6w4oFbzkpJ8LwA8nIbZj6nS5zVKQaKOGzBBV/Y4Pi ij+JZ50QXzl7aLySRaw41zAfk7E0r10= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-424-bGopWifKNZKn-Inm9pKhqQ-1; Fri, 04 Mar 2022 08:40:26 -0500 X-MC-Unique: bGopWifKNZKn-Inm9pKhqQ-1 Received: by mail-wr1-f70.google.com with SMTP id z16-20020adff1d0000000b001ef7dc78b23so3371545wro.12 for ; Fri, 04 Mar 2022 05:40:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=wqPGtWFCVDPRGhVgRp/c/kDyoLIXiZZqdrhcBaAKsjU=; b=ibd19zB4/iwjnc2HGl2i/LnqULBA39VtdNJPO4cJeeuUyC0oQ/Oh7WSVMCWEp2kWQB H0ad/Q2LUZd46UpG83OycLzuebv7UTKHWpJlEN25OyAnb6mjmJIBgqKApFIKiSOHHWAh jqZrrYLrp5cGUGt2Fi33psUYQLl/JcvjAXT+OBzvxZsX//zS4iIyKW4MI9MON+NY6jh1 OwwefgiiVKM4Vv8DH6qCY674G2FMMSVbcNeJ3FpgqrH1K3Vq6hET6rhwslP8o1IM/vm3 EIfz6VflsHOJLjNQpZfgXn4vHtg2ZD+M3RyNq46X7BoVFIVga25VMU9zJAOD2sq5sd9Y ylbQ== X-Gm-Message-State: AOAM533MUouvc08ezDH+RAf4CTGVCt8H5fW9KMsBe0+Gk5ukQnlyFWpj e0iRZP00HZ02xuIwH9sxdEfK6Bab7/6K1jjvTF9Jadw0IdOFSzMu4gF9M6miC8K0SjedwT+q2xA 6kyDnG0No13rJZLlREH/4enJOG/HBXznfijxB2Yoto8Kv8AV2zNL+yhCjiGRq X-Received: by 2002:a5d:6d8e:0:b0:1f0:3594:c3e with SMTP id l14-20020a5d6d8e000000b001f035940c3emr9401239wrs.44.1646401225238; Fri, 04 Mar 2022 05:40:25 -0800 (PST) X-Received: by 2002:a5d:6d8e:0:b0:1f0:3594:c3e with SMTP id l14-20020a5d6d8e000000b001f035940c3emr9401219wrs.44.1646401225013; Fri, 04 Mar 2022 05:40:25 -0800 (PST) Received: from redhat.com ([2.52.16.157]) by smtp.gmail.com with ESMTPSA id s17-20020adfbc11000000b001f023d197b8sm4614847wrg.68.2022.03.04.05.40.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 05:40:20 -0800 (PST) Date: Fri, 4 Mar 2022 08:40:17 -0500 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Subject: [PULL 24/45] tests/qtest/virtio-iommu-test: Check bypass config Message-ID: <20220304133556.233983-25-mst@redhat.com> References: <20220304133556.233983-1-mst@redhat.com> MIME-Version: 1.0 In-Reply-To: <20220304133556.233983-1-mst@redhat.com> X-Mailer: git-send-email 2.27.0.106.g8ac3dc51b1 X-Mutt-Fcc: =sent Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=mst@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline Received-SPF: pass client-ip=170.10.133.124; envelope-from=mst@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , Cc: Laurent Vivier , Peter Maydell , Thomas Huth , Jean-Philippe Brucker , Cornelia Huck , Eric Auger , Paolo Bonzini Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Jean-Philippe Brucker The bypass config field should be initialized to 1 by default. Reviewed-by: Eric Auger Signed-off-by: Jean-Philippe Brucker Message-Id: <20220214124356.872985-5-jean-philippe@linaro.org> Acked-by: Cornelia Huck Reviewed-by: Eric Auger Tested-by: Eric Auger Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Acked-by: Thomas Huth --- tests/qtest/virtio-iommu-test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/qtest/virtio-iommu-test.c b/tests/qtest/virtio-iommu-test.c index 47e68388a0..068e7a9e6c 100644 --- a/tests/qtest/virtio-iommu-test.c +++ b/tests/qtest/virtio-iommu-test.c @@ -31,11 +31,13 @@ static void pci_config(void *obj, void *data, QGuestAllocator *t_alloc) uint64_t input_range_end = qvirtio_config_readq(dev, 16); uint32_t domain_range_start = qvirtio_config_readl(dev, 24); uint32_t domain_range_end = qvirtio_config_readl(dev, 28); + uint8_t bypass = qvirtio_config_readb(dev, 36); g_assert_cmpint(input_range_start, ==, 0); g_assert_cmphex(input_range_end, ==, UINT64_MAX); g_assert_cmpint(domain_range_start, ==, 0); g_assert_cmpint(domain_range_end, ==, UINT32_MAX); + g_assert_cmpint(bypass, ==, 1); } static int read_tail_status(struct virtio_iommu_req_tail *buffer)