From patchwork Wed Jun 21 13:12:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Pavlu X-Patchwork-Id: 11102 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp4377162vqr; Wed, 21 Jun 2023 06:48:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ61zF/AA80ikbwicxJza3XSuKsxI4xncGY/GTilH++7dJV3DRyd5pUvYx+KbIvDTJlfoaUt X-Received: by 2002:a17:902:740c:b0:1b3:dfe5:600a with SMTP id g12-20020a170902740c00b001b3dfe5600amr16351162pll.31.1687355279848; Wed, 21 Jun 2023 06:47:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687355279; cv=none; d=google.com; s=arc-20160816; b=nHDwdVR83CoBf0In91r96exfZ4aBYKHZFVqLN97/OViK3Xb0vHd3eeIcz27OVrowkL VgkDxOM2/O0AtKRMnE2TyHYDqthwqnxAH+oLPA4DWIJjEw7+VYA3bYUasalGbwCq+aMk 7wQQ0DTTqpfO9e4PR0y/F0/6g9FxzM5riYJX/lv/gdLE4HkCtw+BRBN0smd7/ZNu4Gb6 /YQ4S+XnjhUclaYNsGQ4y2lvLyNq0qpq+Q2roaEzFbki8ymcql/FvcCgzmkSR88uIWqC cbDrgTAZtW49zvP5m6Q012yJfasppr1ONn6YqAEHDyWACrQxiPnVTksVRcY/C6FYthfg VmRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=dSMeF9skFmtCn8hLggDS/2RupwvwvzyY4wh88cjmpM4=; b=nhyjB4cZPMERBqYjoRUeSH1kdOq2v3A1pXigOJLcjPTVvEzBZXNqL0HyIoos7wkthl G7XJ3z1odvKvpp3GXxhHrP+q/StgDfTEGhvTISP8Vp0EBUarju13vrz9tq3IW6Wwoq/s nSY725E9d7MBlyWc8nEC7NFYhEIt8XhQmtLTN25lsUuaiXKZpewyCh6R45CrJsZtXp4G OeMYKgncuAnH6Dp2D5Qq8zMEDjGn2X8dLOLvuQ97N7pPd4ihT7NqLqRTEG+41lFI/sWy Dmh83T5UG/pBQENQHhas0B5C7QVWJIKLvrioqMuW1JkHoZQiVWQ6+uvrCmBgBtwkd8c9 +m0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=AEBk+VKs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t2-20020a17090340c200b001b19ceca240si4163432pld.169.2023.06.21.06.47.44; Wed, 21 Jun 2023 06:47:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=AEBk+VKs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231964AbjFUNMz (ORCPT + 99 others); Wed, 21 Jun 2023 09:12:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230463AbjFUNMx (ORCPT ); Wed, 21 Jun 2023 09:12:53 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 493A61706 for ; Wed, 21 Jun 2023 06:12:52 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 01D411FE58; Wed, 21 Jun 2023 13:12:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1687353171; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=dSMeF9skFmtCn8hLggDS/2RupwvwvzyY4wh88cjmpM4=; b=AEBk+VKsouIEGMeIlFU05Rw/AfKxlJeP1JCeS/fyO3wICryTAb6Qc+ubGBrmnQMTpr3EUG IBjQZ2XuvxJtNeDkxrCOVtYX3TzJZW//o6S/5VDNxKmmwULOf7dDRaKXoV0e/MaH1ZPu2L cboQc8Xya1NJoEfTVHQR87RGo+ysnQo= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id C2B45134B1; Wed, 21 Jun 2023 13:12:50 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id NxZ0LlL3kmQKYQAAMHmgww (envelope-from ); Wed, 21 Jun 2023 13:12:50 +0000 From: Petr Pavlu To: jgross@suse.com, sstabellini@kernel.org, oleksandr_tyshchenko@epam.com Cc: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, Petr Pavlu Subject: [PATCH 0/2] Fix Linux dom0 boot on a QEMU/KVM virtual machine Date: Wed, 21 Jun 2023 15:12:12 +0200 Message-Id: <20230621131214.9398-1-petr.pavlu@suse.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769320249942701582?= X-GMAIL-MSGID: =?utf-8?q?1769320249942701582?= Fix two problems that prevent booting Linux dom0 on a QEMU/KVM virtual machine, which is sometimes useful for testing purposes. Petr Pavlu (2): xen/virtio: Fix NULL deref when a bridge of PCI root bus has no parent xen/virtio: Avoid use of the dom0 backend in dom0 drivers/xen/grant-dma-ops.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)