From patchwork Wed Jan 15 23:22:42 2025 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: 857627 Delivered-To: patch@linaro.org Received: by 2002:a5d:525c:0:b0:385:e875:8a9e with SMTP id k28csp2731069wrc; Wed, 15 Jan 2025 15:25:37 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXuu/2LMQ3tU0zLcYwDKL6b0bvxfy8xBMNoqsFHJ8gbbWoB1bKDevn6P8j05ybHUHlIUMvplA==@linaro.org X-Google-Smtp-Source: AGHT+IHfSfOPvv3QcczapCwe3/Qob7tq2bCTmTVUfNYJMa4wd+jEjCmPJbf2pVaFUICvM0swEYxY X-Received: by 2002:a05:622a:254:b0:466:89f8:305e with SMTP id d75a77b69052e-46c710818a4mr523086311cf.38.1736983537238; Wed, 15 Jan 2025 15:25:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1736983537; cv=none; d=google.com; s=arc-20240605; b=ICiu+7Rb6TLpPH9DHTsL/wsWdqi658GktoA1uIJ8GPkKEZiXD+4x0EfTW7qD+eLCA4 c3TBO9Ip5UmF8DL/bk+q2Q84O6QWtnEi53SfWodQPoAP95OgHWL3dL2WeHELlWE2yIuI TN4kadZ5QEXrp0xuISQHRie+dXGfcWe1k4EYPLjafMz2MU3954GkGqKi06xW6ki7Hhmk JO57pLQ/2sNFTmWer3ncP05PObQ8HYUsUnFZRtJnuQFrGFmJjDzL+MGHPzrbdPwwH0kO HwqilOFvcUT/lWYzW73OJVZ+HrQL9rW4kKsEJbSd7oNHIG8VyoXrI4GuFGBhkjbzrjPB pk8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to: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:cc:to :from:dkim-signature; bh=O4yl4DQEqVaBZntvaEzVkn8po7qkjcpxFpZJUic/H/4=; fh=6uCsJEqu0l7fwjMp6wYCwiXDsQFV46+Cnzseg3I3wJE=; b=Dihl9sqf71JsTem8cxhjuAUcLxsvslzwC6JYkfiaoi8uxqOpye/AgGrmuze1BBBCqW lBa7dk9Egh5hf/h8uPG9pzoLFcp4JME5QkOKlfMPAfyM4XlcD8TBRn4YNsynRYRoAHv2 d5cdo8iq5orbe2Zgr6GZsVZ4cu/4siQIVg//04KLiWF9Ao3wcJZ+5PrlX0h7c9WJxrt8 ojaLJrvff/2RPFZX657TLR4LZhZw/dIrUNFZ+lh6bD8M0oFVpV3s1tqyGTwHcz+/thSb u9FPQWSW+Oc5GbngcDk+0lzItT85lEtcfkf6QarZvCHOTEb0nBWANff3rdT/4nsG0e9c gKrw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rqavEPYN; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6dfadf6b74csi166389156d6.363.2025.01.15.15.25.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Jan 2025 15:25:37 -0800 (PST) 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=rqavEPYN; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tYCkI-0003Wd-Ci; Wed, 15 Jan 2025 18:24:22 -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 1tYCkG-0003Ol-Lb for qemu-devel@nongnu.org; Wed, 15 Jan 2025 18:24:20 -0500 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tYCkF-0003z9-58 for qemu-devel@nongnu.org; Wed, 15 Jan 2025 18:24:20 -0500 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-43625c4a50dso1548885e9.0 for ; Wed, 15 Jan 2025 15:24:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1736983457; x=1737588257; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=O4yl4DQEqVaBZntvaEzVkn8po7qkjcpxFpZJUic/H/4=; b=rqavEPYNO+nqMq/FiF6VBHsrI6YwS816ytLj9UXOmBJsBxO4h054w3M1QBfUB386Mq p6lncKQaS0FQgsXg7Op5m1MIvTM7Z4DCRwv9fJhR3hskjtdBf4r8Uk0x0RBu6hlT+5Ic nOOQqIIF3OzW++poExnr/seGO3OdnXAZCdbst+P0FUCmALrcFW75uYSL07umAyYO1mnp 8K5VQ/JRTpyOkFDWM7KkuQ9xkIJ5dRkX9Wo7YprGZhbyDXK2o9EUt5t+SLpnp4OTyNxd ks+JIUsDjvL/ciWRVQIUjcZ/oA9mp+kVZzm6WjbMG3+9L7kcVL3A8cItF2Ag96ka2lPV FgGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736983457; x=1737588257; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=O4yl4DQEqVaBZntvaEzVkn8po7qkjcpxFpZJUic/H/4=; b=Z8y133xACzvCAJnRHznzf4mswPzFblsDdskEGdxfO0p+ZKQGpf9QVGeIRbnRLTAAS2 Y5QqO9cUuKLSZL7VdNjxxOABFUvfsUsc2N8w8RYPdL/XlsetseO7ne8AdeEREj+6DUs2 hY1Y8svBcPZFdz0hKO5YL+ubadnVUpnNTCKt1ZPQwViOwaqmzss+U/O3V5FnoWuPb/Ew bOMlv588rqNdzCmBuq2bdN8WSriQmARyyRuvGBejPrSC4h5YcGY+TjbDmjghSgrIuJIv H/uKpDQA4JKMNOHg6Azl7s1jMYfNnwOyU65hNc+hzwcH6MF0ev46J1GwmmPfAaIujcVs 5xlg== X-Gm-Message-State: AOJu0YwEFnuLSxGnDQitvfS/iw4iF1IyvIaqwzRbFPdp4g/dZHr0Fzsv xo8AlnnTwwdk2m3Z1YjU8ZL8H3+k0KJuRVy/YBwbeR+SThH4e8DrHgdHFC/r4hFyhsFlHFE3g1W 0e7k= X-Gm-Gg: ASbGncvvFDAl287hpssF0NtFYvriAKInKonyoDfB40XFt9zE6aKO7PWtuXsdTqa8Cr5 orinOnsRmRs8jUJZslJvCgGfS5CQvdcwIiNJSvmJJsNVZjhXdODLN/xiiD2GhHkl1kbzUAnspo6 wnxo+CpTslxIKIx5MrWKeBRPglAS3WvTwg/TGmhZ8jgDLYE+vMd0ZzQ/UPkmNBhADeesrbJjeul dl8lnBMQPoJiV8a6zYZ1E1Mzn9BdCONnXKSM8UFyi8QqKgeJdCbKtCu3kO3POf4N/hnuPRB6EBZ PhbohFgI4mu6G3KtfpSc9RXw2TSLWgk= X-Received: by 2002:a05:600c:5117:b0:431:60ec:7a96 with SMTP id 5b1f17b1804b1-436e26ddc53mr238742545e9.25.1736983457161; Wed, 15 Jan 2025 15:24:17 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38a8e4b8124sm18585770f8f.81.2025.01.15.15.24.16 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 15 Jan 2025 15:24:16 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Jason Wang , Hanna Reitz , Dmitry Fleytman , qemu-block@nongnu.org, Fam Zheng , Paolo Bonzini , "Michael S. Tsirkin" , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , Zhao Liu , Yanan Wang , Kevin Wolf , Eduardo Habkost , Richard Henderson , Marcel Apfelbaum , Gerd Hoffmann , John Snow Subject: [PATCH 16/21] hw/scsi/vmw_pvscsi: Remove PVSCSI_COMPAT_OLD_PCI_CONFIGURATION definition Date: Thu, 16 Jan 2025 00:22:42 +0100 Message-ID: <20250115232247.30364-17-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250115232247.30364-1-philmd@linaro.org> References: <20250115232247.30364-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=philmd@linaro.org; helo=mail-wm1-x32e.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=unavailable 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 PVSCSI_COMPAT_OLD_PCI_CONFIGURATION was only used by the hw_compat_2_5[] array, via the 'x-old-pci-configuration=on' property. We removed all machines using that array, lets remove all the code around PVSCSI_COMPAT_OLD_PCI_CONFIGURATION. Signed-off-by: Philippe Mathieu-Daudé --- hw/scsi/vmw_pvscsi.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/hw/scsi/vmw_pvscsi.c b/hw/scsi/vmw_pvscsi.c index f07e377cb88..8c793b4188d 100644 --- a/hw/scsi/vmw_pvscsi.c +++ b/hw/scsi/vmw_pvscsi.c @@ -69,17 +69,11 @@ OBJECT_DECLARE_TYPE(PVSCSIState, PVSCSIClass, PVSCSI) /* Compatibility flags for migration */ -#define PVSCSI_COMPAT_OLD_PCI_CONFIGURATION_BIT 0 -#define PVSCSI_COMPAT_OLD_PCI_CONFIGURATION \ - (1 << PVSCSI_COMPAT_OLD_PCI_CONFIGURATION_BIT) #define PVSCSI_COMPAT_DISABLE_PCIE_BIT 1 #define PVSCSI_COMPAT_DISABLE_PCIE \ (1 << PVSCSI_COMPAT_DISABLE_PCIE_BIT) -#define PVSCSI_USE_OLD_PCI_CONFIGURATION(s) \ - ((s)->compat_flags & PVSCSI_COMPAT_OLD_PCI_CONFIGURATION) -#define PVSCSI_MSI_OFFSET(s) \ - (PVSCSI_USE_OLD_PCI_CONFIGURATION(s) ? 0x50 : 0x7c) +#define PVSCSI_MSI_OFFSET (0x7c) #define PVSCSI_EXP_EP_OFFSET (0x40) typedef struct PVSCSIRingInfo { @@ -1110,7 +1104,7 @@ pvscsi_init_msi(PVSCSIState *s) int res; PCIDevice *d = PCI_DEVICE(s); - res = msi_init(d, PVSCSI_MSI_OFFSET(s), PVSCSI_MSIX_NUM_VECTORS, + res = msi_init(d, PVSCSI_MSI_OFFSET, PVSCSI_MSIX_NUM_VECTORS, PVSCSI_USE_64BIT, PVSCSI_PER_VECTOR_MASK, NULL); if (res < 0) { trace_pvscsi_init_msi_fail(res); @@ -1298,8 +1292,6 @@ static const VMStateDescription vmstate_pvscsi = { static const Property pvscsi_properties[] = { DEFINE_PROP_UINT8("use_msg", PVSCSIState, use_msg, 1), - DEFINE_PROP_BIT("x-old-pci-configuration", PVSCSIState, compat_flags, - PVSCSI_COMPAT_OLD_PCI_CONFIGURATION_BIT, false), DEFINE_PROP_BIT("x-disable-pcie", PVSCSIState, compat_flags, PVSCSI_COMPAT_DISABLE_PCIE_BIT, false), };