From patchwork Tue Sep 8 14:25:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 11763401 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 65AA259D for ; Tue, 8 Sep 2020 14:26:28 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 3A101224B8 for ; Tue, 8 Sep 2020 14:26:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="dcfn3GGR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3A101224B8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kFeZT-0004W8-8u; Tue, 08 Sep 2020 14:26:07 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kFeZR-0004Vu-Rj for xen-devel@lists.xenproject.org; Tue, 08 Sep 2020 14:26:06 +0000 X-Inumbo-ID: e67a68ad-80ba-4a9a-be08-4ad3c345adc9 Received: from us-smtp-delivery-1.mimecast.com (unknown [205.139.110.120]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTP id e67a68ad-80ba-4a9a-be08-4ad3c345adc9; Tue, 08 Sep 2020 14:26:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1599575165; 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; bh=AigchT0IqpQTMPs2wbwFMKYiR3x5TIxf3jJNE6ATp5A=; b=dcfn3GGRTBT1VaX075XZQwKYP0Hjquy8GHvaZTjCpYK1xJeJWo807FjPbfHBZTKAqeQ2nf 9ZVY5XsjC7pRGAHObaG0Swpgtje5MSznQtcmLyB0ks9icUQEzXPv6sP+QIOucMPPptam4s 7SHMvFyoSIQzN/by5FWWc7Sq7QyTD8s= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-528-pfpLC3VhNmWkrSHzFKrArw-1; Tue, 08 Sep 2020 10:26:03 -0400 X-MC-Unique: pfpLC3VhNmWkrSHzFKrArw-1 Received: by mail-wm1-f71.google.com with SMTP id u5so4539963wme.3 for ; Tue, 08 Sep 2020 07:26:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AigchT0IqpQTMPs2wbwFMKYiR3x5TIxf3jJNE6ATp5A=; b=t3PI9hy6L9zdoGQ//zmyxHoftr9xFxedZjeTwMHLL76ODEh6uVRPiFAo0s0r+fnZ7R huJo1K0N7O8/cLluZNG1Oe74MH1eld2JM67jfsAJPgPBeE5dVzX4w9cH/o9T5lGisS/g +IdZFzRnmhpl2en8YqaJQ4PNnN1PmaREx27orJjvQl9wN2XSg0Z3MBU/posrAFWQDiom jQ04BnQmSbRoxr82i08o1kZfjLS/PToTPYDJeEn3hkQVhQfAlcqEu/gCppNPHQtSe3hU cjvSg/3vRnBkEQ0lR6A1H7ONa04W7f+6uvpuj/0qoDYWLjLp1gL57NhxfaYr1l9ufIDa rqTQ== X-Gm-Message-State: AOAM531AyTeYggVKCm2uQVAu6hrNDvVtlKfIAVdvPWV9zCU1FZIvbvgZ 2f7M+ZPDlLjRUQz95eNsQW5NOcfkWZgeMvqnJY849y/saAdwpOKwIpvCTu05n6TgRhGEsEa57/w G10DLXkLaGYJmoalDr6HAHcIYwV4= X-Received: by 2002:adf:e989:: with SMTP id h9mr29297431wrm.38.1599575161369; Tue, 08 Sep 2020 07:26:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsWz2CkHeEuhNarNgmaivVi6iopBf5ujS65WHyGjJQWXzXJi1ZEAq7Y9Gv1FoWsJeCqXsz6A== X-Received: by 2002:adf:e989:: with SMTP id h9mr29297414wrm.38.1599575161222; Tue, 08 Sep 2020 07:26:01 -0700 (PDT) Received: from localhost.localdomain (65.red-83-57-170.dynamicip.rima-tde.net. [83.57.170.65]) by smtp.gmail.com with ESMTPSA id 189sm33177412wmb.3.2020.09.08.07.26.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 07:26:00 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Anthony Perard , "Michael S. Tsirkin" , Paul Durrant , Eduardo Habkost , Marcel Apfelbaum , Richard Henderson , Stefano Stabellini , Paolo Bonzini , xen-devel@lists.xenproject.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 0/5] hw/xen: Housekeeping Date: Tue, 8 Sep 2020 16:25:54 +0200 Message-Id: <20200908142559.192945-1-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0.001 X-Mimecast-Originator: redhat.com X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Hard to make an exciting cover of this series. Basically: - Make better separation between Xen accel and Xen hardware, - Move stuff around to restrict PCMachineState to hw/i386/. Philippe Mathieu-Daudé (5): hw/i386/q35: Remove unreachable Xen code on Q35 machine hw/i386/xen: Rename X86/PC specific function as xen_hvm_init_pc() stubs: Split accelerator / hardware related stubs hw/xen: Split x86-specific declaration from generic hardware ones typedefs: Restrict PCMachineState to 'hw/i386/pc.h' include/hw/i386/pc.h | 4 ++-- include/hw/xen/xen-x86.h | 15 ++++++++++++ include/hw/xen/xen.h | 2 -- include/qemu/typedefs.h | 1 - accel/stubs/xen-stub.c | 41 +-------------------------------- hw/i386/pc_piix.c | 8 +++---- hw/i386/pc_q35.c | 13 ++--------- hw/i386/xen/xen-hvm.c | 3 ++- stubs/xen-hw-stub.c | 49 ++++++++++++++++++++++++++++++++++++++++ MAINTAINERS | 1 + stubs/meson.build | 1 + 11 files changed, 77 insertions(+), 61 deletions(-) create mode 100644 include/hw/xen/xen-x86.h create mode 100644 stubs/xen-hw-stub.c