From patchwork Wed Mar 8 11:19:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: David Woodhouse X-Patchwork-Id: 1754036 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=mHPc5ubL; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PWqcs24Vtz1yWr for ; Wed, 8 Mar 2023 22:21:01 +1100 (AEDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZrqB-0005ch-M6; Wed, 08 Mar 2023 06:20:15 -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 1pZrq6-0005bC-DZ for qemu-devel@nongnu.org; Wed, 08 Mar 2023 06:20:10 -0500 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZrq2-0005zB-UX for qemu-devel@nongnu.org; Wed, 08 Mar 2023 06:20:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:In-Reply-To:References; bh=GhFKJgGofODWcD6y76sA7JctwGb6UxxM0NMMIYt3IOE=; b=mHPc5ubL/xy6L+efYFT/HcFWhb Cd+PJW9Pi0bN4Bm+b9MzZpzx/j7aGCwrd50eom11p/LTZskqc3hIZj5ZUcPS5Pwu6N7R73pRJM3P9 wOIQxo5ohqEpVk+ObtHwhWYipx0cmJtZ1FZLThfzyT8F58VghNDjtWVDtqJXhQ3EbodkFFI1xAD1N EA/igzGGNqlQF1BM9uqZh9hMeW/upOly1xH11FdF3cIoG3524xC9ovxsBUfMSHSWDLKzetUnesgvy 5DNuE78LoUliSR1YdFI7datIoqG6E7G0FQi9D0qwlkJB6u6MKaYXhsM0xHckapgmNmfx308Dcnq0g rM/i0Bsw==; Received: from i7.infradead.org ([2001:8b0:10b:1:21e:67ff:fecb:7a92]) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1pZrpr-00HMr8-2k; Wed, 08 Mar 2023 11:19:56 +0000 Received: from dwoodhou by i7.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1pZrpq-00BS0W-07; Wed, 08 Mar 2023 11:19:54 +0000 From: David Woodhouse To: qemu-devel@nongnu.org Cc: Cleber Rosa , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Beraldo Leal , Paolo Bonzini , Paul Durrant , "Michael S. Tsirkin" , Peter Xu Subject: [PATCH v2 0/3] Enable avocado testing for Xen guests Date: Wed, 8 Mar 2023 11:19:49 +0000 Message-Id: <20230308111952.2728440-1-dwmw2@infradead.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by desiato.infradead.org. See http://www.infradead.org/rpr.html Received-SPF: none client-ip=2001:8b0:10b:1:d65d:64ff:fe57:4e05; envelope-from=BATV+9591d7c4daecea4c87af+7136+infradead.org+dwmw2@desiato.srs.infradead.org; helo=desiato.infradead.org X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, SPF_HELO_NONE=0.001, SPF_NONE=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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org I'd love to test other operating systems too (FreeBSD does work if I abuse the stuff in tests/vm/ and add a Xen guest mode). But this is enough for now to help catch regressions on the QEMU side. Especially the polling for the event channel GSI deassertion is likely to be fragile, and in the not-so-distant future I really do want to add an explicit EOI hook in the interrupt controllers; as discussed, VFIO INTx would benefit from that too. When the guest kernel boots with 4 CPUs, it ends up initially targeting the event channel GSI to CPU#2, and then testing the migration. Since nobody evidently cared about the I/OAPIC migration bug in the 7 years since it was introduced with the first split-irqchip support, that fix might as well stay here in this series. v2: https://git.infradead.org/users/dwmw2/qemu.git/shortlog/refs/heads/xenfv-test-2 • Use xen-disk now that the PR adding support for that has been submitted • Include the I/O APIC migration fix, so that we can use -smp 4 v1: https://lore.kernel.org/qemu-devel/20230303125126.1269861-1-dwmw2@infradead.org/ https://git.infradead.org/users/dwmw2/qemu.git/shortlog/refs/heads/xenfv-test David Woodhouse (3): hw/intc/ioapic: Update KVM routes before redelivering IRQ, on RTE update tests/avocado: Add Fedora 34 distro, including kernel/initrd checksums tests/avocado: Test Xen guest support under KVM hw/intc/ioapic.c | 3 +- tests/avocado/avocado_qemu/__init__.py | 27 ++++++ tests/avocado/xen_guest.py | 147 +++++++++++++++++++++++++++++++++ 3 files changed, 175 insertions(+), 2 deletions(-) create mode 100644 tests/avocado/xen_guest.py