From patchwork Tue Oct 3 08:27:23 2023 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: 728720 Delivered-To: patch@linaro.org Received: by 2002:a5d:60c8:0:b0:31d:da82:a3b4 with SMTP id x8csp2032679wrt; Tue, 3 Oct 2023 01:28:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEWMLAHdVOwVh3MxuSDtqBmhjcqSUgI+xxwizEcs5INf7c+RB1bO3JuUCkT+5LuUaIdhEwm X-Received: by 2002:ac8:7c52:0:b0:415:1752:1be5 with SMTP id o18-20020ac87c52000000b0041517521be5mr16531023qtv.31.1696321733302; Tue, 03 Oct 2023 01:28:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696321733; cv=none; d=google.com; s=arc-20160816; b=mwStd9rkI/quyArg9HPbqdvwb6MXTHdr4rKsPi4UOJP6No2QMnygI8jHSHYCqXXZ79 sMJ28/BAPC4lhvgZVIgWTtue2d9xEHPsA2NLFwFXmdRihVT/VydPQ8tUTEdtqdazdu7t wqzlTr3DkGvmAV50VdfuB9WmyXytdEnl7G/8KV3zF8ZefuHnSisDgo2CGVkMkQMpvZW2 zw6zFRJIxPU0bq0v0cqdNDE9YxsJgrg+pdoPwfm8Uaup6Pa9yE5I/OBC0ApnKpG0YkZ6 r2fCg9GrJ95JygUvec1emjqcKYj0Mk2oIWC+aDM6VtPDC1XdsbhGpWd0t9tsb1KhlwUO vB/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=cvFSizht0QLR7BE5OEcX79gZpgM6xlScGli2YAzjrJs=; fh=biB0OdKYuvljSiUGLVdYZIMuRed58bIG1HesIB1fX9c=; b=LK8DKJdeH9snMzkrpP1MpvsUXye73VazXVCSAgPBuT6phnd65b9NLUuAhcfFdmegF5 A4OyK7jbU8bl8vZWCcrwaVYgj5EIM5nx/xFZjhcOY1FxjAXVOW6psKtXQ9phwS55yuPY qq8KAFDWvtzvyUYsTBenvsfzpxWYAUTIVuNaL+eNTO0+ZatfolKF/yhNdXfUyFncUZZh 1+gDZyu6UfeQWLnBQ3i9u4YrlAvvL97Rgz7lxCUg9N2+4c3O1Ed78/VDnM1jIVElgcHQ iQihtPeem/98I/vpexV7hriBtc7g2Qrs9yKPMVudKWNzjsL7NlXkBMudO6dr4jInZYTg PyXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VSRX8MNu; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id u9-20020ac858c9000000b004055a48136fsi331703qta.129.2023.10.03.01.28.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Oct 2023 01:28:53 -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=pass header.i=@linaro.org header.s=google header.b=VSRX8MNu; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qnakr-0005P2-Q0; Tue, 03 Oct 2023 04:27:45 -0400 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 1qnakq-0005Nc-6i for qemu-devel@nongnu.org; Tue, 03 Oct 2023 04:27:44 -0400 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qnakg-0007yN-Q9 for qemu-devel@nongnu.org; Tue, 03 Oct 2023 04:27:40 -0400 Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-50325ce89e9so784955e87.0 for ; Tue, 03 Oct 2023 01:27:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696321652; x=1696926452; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=cvFSizht0QLR7BE5OEcX79gZpgM6xlScGli2YAzjrJs=; b=VSRX8MNu48odErvx6zUCzlzyekh8zayZEhauj7mUNwryddeQwHRobN1ooAlg+t9aHF Qt7VBwrtTX+jr7g6FzQVcQ9JP6Zbfb8KamXnh0gzuD6c7zGt7qHLA7h8hmHPamH806G6 u0IcYXE0S4v9SrHXnc7NR06375bZBX/R19xMkaGN/smmF+ZWvMK8m/kpngXEh8BwY9Yd XqfB+r67tOJLWjtn49EcfFJ/+Ns1AzrBEeoEIuO97hx6DUgGJ15MHqGkJbR1hipI1SxF Jg23iBAuNo/gZKy6kW/Vyw0U4mN1NzMFbRkFOwBGGMDUSQ9V29ip19BFScufOVKguZeq JQCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696321652; x=1696926452; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cvFSizht0QLR7BE5OEcX79gZpgM6xlScGli2YAzjrJs=; b=xSiaV0bxLMKxKUeeYIZsP0Ydxe8umzE8Ei6LFIsusbYyEXLzQlu6v5mfjARZhG5knb EjFS7fJFfq5adXIzbmJ+j5l4q4S+QmEH9UrT8mT2byOsrOXLXoHIAseLW31/5P/Uc5+X vdIRRN5KOGTioyllTJ1KGpKtZ2VtzMgsCBKoaUMm4ftZZkZuPI4+qRL2qGwk/8Fb3+39 hXWkx4s3aeTSuIkSlb5AmEcf31XD26+/ckV01BOZAYCxzzJaVuabP7VvYWUGDU7kIafH ttpegJRq9AFUs3Ry9iOSvW7RboGE0pzRZ3ETiqQTko4+49ZmxeSZbdswtR6GOZTEZsPg 9MjQ== X-Gm-Message-State: AOJu0YyBtEB5cDZgS9mPRzx9fw9VxL9lmOs2ROt6QcCj8YbwCebgCcyb dqo5MYA0riN91J/8PcASZxJheY2hM3a6goGyOu3e3A== X-Received: by 2002:a05:6512:1248:b0:502:b1b9:88c5 with SMTP id fb8-20020a056512124800b00502b1b988c5mr12371665lfb.26.1696321652065; Tue, 03 Oct 2023 01:27:32 -0700 (PDT) Received: from m1x-phil.lan (176-131-222-246.abo.bbox.fr. [176.131.222.246]) by smtp.gmail.com with ESMTPSA id q12-20020a05600c040c00b003fc06169ab3sm8881284wmb.20.2023.10.03.01.27.30 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 03 Oct 2023 01:27:31 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Bernhard Beschow , Marcel Apfelbaum , Markus Armbruster , Richard Henderson , Peter Xu , Jason Wang , "Michael S. Tsirkin" , Eduardo Habkost , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 0/5] hw/intc/apic: QOM cleanup Date: Tue, 3 Oct 2023 10:27:23 +0200 Message-ID: <20231003082728.83496-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::131; envelope-from=philmd@linaro.org; helo=mail-lf1-x131.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Since v1: - Dropped change in x86_cpu_realizefn (rth) - Simplify kvm_apic_realize() error propagation Minor cleanup extracted from a bigger series touching x86_cpu_realizefn(). Philippe Mathieu-Daudé (5): hw/intc/apic: Use ERRP_GUARD() in apic_common_realize() hw/i386/apic: Defer error check from apic_get_class to kvm_apic_realize hw/i386/apic: Simplify apic_get_class() hw/intc/apic: Rename x86_cpu_apic_create() -> x86_cpu_apic_new() hw/intc/apic: Pass CPU using QOM link property include/hw/i386/apic_internal.h | 2 +- target/i386/cpu-internal.h | 2 +- hw/i386/amd_iommu.c | 2 +- hw/i386/intel_iommu.c | 4 ++-- hw/i386/kvm/apic.c | 5 +++++ hw/intc/apic_common.c | 8 +++++++- target/i386/cpu-sysemu.c | 23 +++++++---------------- target/i386/cpu.c | 5 +---- 8 files changed, 25 insertions(+), 26 deletions(-)