Message ID | 20220420103309.264479-5-thuth@redhat.com |
---|---|
State | Accepted |
Commit | 5b4f72f5e8620547e765ce8b1f2b4734022e8ab9 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp4038492map; Wed, 20 Apr 2022 03:45:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUPJP9+ugZsFQDw7GOd9Prd8a39m08mIdIfq/5deNqF9udbJuzwgWjKlG3t3487CCyCbpk X-Received: by 2002:a05:622a:192:b0:2f1:eb39:cfb2 with SMTP id s18-20020a05622a019200b002f1eb39cfb2mr13308538qtw.425.1650451516464; Wed, 20 Apr 2022 03:45:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650451516; cv=none; d=google.com; s=arc-20160816; b=OHYgfBbj6yfUFp6UW1AFKGW4F1sKvAIclHyen5RZzxqebZVMZDt1+vvowuVr2Aqt+q o2EpUlDy/GBU8iXQhRZdYo7Im/2mDFos6XAKdpEwjAp8OaimNK0qwTI4416fxeHpFnqD CVcZrt2tnEZDqT0iVm+dRqrKtJ58PLMUfBDgg5wOCi4HQ3YSkDMgTPsyYU8+aIxkjnfx tC8W6HqXBr7XMafdfmb1ysO+2j6QqdYwYsUoTOy8tdUWI07G9BWB9rb9WHh2c6ZOHK6q bN7g+SKiRPe1BzV8t2UlZTXCc988dzSO0dt7NAE1T93SZ5Hw4hRk1Yyw4GlwFT3KHJjX neow== 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-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=5kjYXNut4AoVVjH8FYHZGy5DwSVR7/wMYrfiaIjtkhg=; b=pjSt5ae32Lr8RMNvBcgPI0jIEzzIZO6LsDjKaZ/6zZ7jJ4LF2qgmhd/NNr2s6zobVs i7XATpBEDQlzKFym0fC/DZQOXMrzai3LxVOK9Y9h/FE6ikT7CogpMTY6OvRN1sJqQPyY HlJgX6HFTzNbB0KY1EHjsfv85I3GUGEvqGz0aTiQWtEpJmyXE3nkAD6+9zLPvSGYNkzJ 4gsMplbnjDyjbPlSm72UHMNuXpKYFTKecYJFBYpsPkTSRPYRtsfYKh6h5e+JBZkPVvb9 uFRZLYBbimrR0890Y5apCLtifyJlfNuTlVJaXm8q/gzQxz01j24ZGmaGlMFYphRFqwxk 8WYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@redhat.com header.s=mimecast20190719 header.b="i/1QsEIZ"; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 5-20020a05621420c500b00443c7c70376si407199qve.252.2022.04.20.03.45.16 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Apr 2022 03:45:16 -0700 (PDT) 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="i/1QsEIZ"; 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]:47686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1nh7pk-0004X8-0b for patch@linaro.org; Wed, 20 Apr 2022 06:45:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59008) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <thuth@redhat.com>) id 1nh7eQ-0001PR-K2 for qemu-devel@nongnu.org; Wed, 20 Apr 2022 06:33:37 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:38086) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <thuth@redhat.com>) id 1nh7eK-0006rQ-Ox for qemu-devel@nongnu.org; Wed, 20 Apr 2022 06:33:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650450807; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5kjYXNut4AoVVjH8FYHZGy5DwSVR7/wMYrfiaIjtkhg=; b=i/1QsEIZzWmbReAR2fG8mCJ2Jc+ed8zOlBcSqSOncti0dlapD0N320QV4Wpo/OHiEv+KEk NTlicuZFvgW9jdmHB2ptV7bZ1xXLgavGKaF7odrbfFTxnmSoO1cTN9mfu5apacV5dGpEud SqDUWnZHXjtLAsnjHf2UN4ALjiTPYUk= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-232-4w7VezKsNhmb8zR3F7y2iw-1; Wed, 20 Apr 2022 06:33:24 -0400 X-MC-Unique: 4w7VezKsNhmb8zR3F7y2iw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 09D34803533; Wed, 20 Apr 2022 10:33:24 +0000 (UTC) Received: from thuth.com (unknown [10.39.195.200]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5BE55C44AE1; Wed, 20 Apr 2022 10:33:22 +0000 (UTC) From: Thomas Huth <thuth@redhat.com> To: qemu-devel@nongnu.org, Richard Henderson <richard.henderson@linaro.org>, Peter Maydell <peter.maydell@linaro.org> Subject: [PULL 4/7] tests/qtest: properly initialise the vring used idx Date: Wed, 20 Apr 2022 12:33:06 +0200 Message-Id: <20220420103309.264479-5-thuth@redhat.com> In-Reply-To: <20220420103309.264479-1-thuth@redhat.com> References: <20220420103309.264479-1-thuth@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8 Received-SPF: pass client-ip=170.10.133.124; envelope-from=thuth@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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Eric Auger <eric.auger@redhat.com>, =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, Stefan Hajnoczi <stefanha@redhat.com> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
None
|
expand
|
diff --git a/tests/qtest/libqos/virtio.c b/tests/qtest/libqos/virtio.c index 6fe7bf9555..fba9186659 100644 --- a/tests/qtest/libqos/virtio.c +++ b/tests/qtest/libqos/virtio.c @@ -260,6 +260,8 @@ void qvring_init(QTestState *qts, const QGuestAllocator *alloc, QVirtQueue *vq, /* vq->used->flags */ qvirtio_writew(vq->vdev, qts, vq->used, 0); + /* vq->used->idx */ + qvirtio_writew(vq->vdev, qts, vq->used + 2, 0); /* vq->used->avail_event */ qvirtio_writew(vq->vdev, qts, vq->used + 2 + sizeof(struct vring_used_elem) * vq->size, 0);