From patchwork Mon Nov 18 13:42:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 13878618 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8E80AD49222 for ; Mon, 18 Nov 2024 13:43:59 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tD21x-0000HP-0w; Mon, 18 Nov 2024 08:43:05 -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 1tD21u-0000H6-M3 for qemu-devel@nongnu.org; Mon, 18 Nov 2024 08:43:02 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tD21s-0005R3-H8 for qemu-devel@nongnu.org; Mon, 18 Nov 2024 08:43:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1731937379; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JnPuj/Ao84HNRM35VmPWv8XIuBS/8IHZBk2XRpc9GSo=; b=MHecODiOPs3aROGByMnMeYkSjvT9ovI3LkSBiY/+e5ig4huU9fkILTgmr5WuMMR7mJ+z/v gZmCdfz6dtljisYz0gTXTU2kqGjoSej9EsjF1gkeCnJviabFgVlk8VQTWfezSx8vVRcABa UnwEpAgT5E/TdUb90lvj92Bkzj7I8lk= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-201-TtJ7sbDFO1S1InPYCwgs0g-1; Mon, 18 Nov 2024 08:42:58 -0500 X-MC-Unique: TtJ7sbDFO1S1InPYCwgs0g-1 X-Mimecast-MFC-AGG-ID: TtJ7sbDFO1S1InPYCwgs0g Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-4315544642eso22767045e9.3 for ; Mon, 18 Nov 2024 05:42:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731937376; x=1732542176; 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=JnPuj/Ao84HNRM35VmPWv8XIuBS/8IHZBk2XRpc9GSo=; b=gSA4+f8FOmZMhlZGB4oa2UAocJIv+vAHDuqEuxKznoMIc5TMVU78FBVdnNRAdeAgmI nxOD9Ghg0dv+QTOSgU//eFj6vkiCcF71W6nFPfqYM1P+MmJhAMOSVXMwfYESy/yUDgqm 3Ntxp126+YA4tE3qH0iEBQYnjuAb5x7Pl9KmAqYDi+71VrMkdywLf0AaVRKNxalgoiqI 83OW072ChbquHmEkWeXUn/Wl6SsoL+Rz5PvRojqxIZXeGT2eaoCeJ5UxCcFfl8gWMvJF tO3z7Sx/v2DeLaLjX8tyEQvBEBdtedihiFw6flWWfHjFrIQqWZPCtuR/EuXgbjuoVDwF yuOA== X-Gm-Message-State: AOJu0Ywnswm7wADxhu9jLgPnOFiNcVTJWGrFKBqQKdiRcBHrNQ73pFzE aQBbr8lXtYwbRWPOzgEBd59PIBoA1BmNAlcnne2+MNIuUqXhYMpXZzIgGSD2DSHfIPx2IIZjzYA NBoL2urmmO3x8r0EG49QiKgqHTBaStqVq820UZl+llrMlaSmeRnmBQRw2BksjbVGZxGCAA+TaH2 dMlb3DKXm7q7zTv26wGa8S3giHo4QdJij2zhyF X-Received: by 2002:a05:600c:4e46:b0:431:5aea:969 with SMTP id 5b1f17b1804b1-432df725235mr107106225e9.8.1731937376160; Mon, 18 Nov 2024 05:42:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgvty+6S9nopq84kvh0YlOKWoUH6MVpIPOgiXZZluqPjTN4w9BGhy8jx91JkzfqbcUDC+yGA== X-Received: by 2002:a05:600c:4e46:b0:431:5aea:969 with SMTP id 5b1f17b1804b1-432df725235mr107106065e9.8.1731937375861; Mon, 18 Nov 2024 05:42:55 -0800 (PST) Received: from [192.168.10.3] ([151.49.84.243]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432dac0ae04sm154933265e9.33.2024.11.18.05.42.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Nov 2024 05:42:55 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: Michael Tokarev Subject: [PULL 1/2] target/i386: hyperv: add stub for hyperv_syndbg_query_options Date: Mon, 18 Nov 2024 14:42:52 +0100 Message-ID: <20241118134253.2071319-2-pbonzini@redhat.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241118134253.2071319-1-pbonzini@redhat.com> References: <20241118134253.2071319-1-pbonzini@redhat.com> MIME-Version: 1.0 Received-SPF: pass client-ip=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.142, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Building without CONFIG_HYPERV is currently broken due to a missing symbol 'hyperv_syndbg_query_options'. Add it to the stubs that exist for that very reasons. Reported-by: Michael Tokarev Signed-off-by: Paolo Bonzini --- target/i386/kvm/hyperv-stub.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/target/i386/kvm/hyperv-stub.c b/target/i386/kvm/hyperv-stub.c index 3263dcf05d3..5836f53c23b 100644 --- a/target/i386/kvm/hyperv-stub.c +++ b/target/i386/kvm/hyperv-stub.c @@ -56,3 +56,8 @@ void hyperv_x86_synic_update(X86CPU *cpu) void hyperv_x86_set_vmbus_recommended_features_enabled(void) { } + +uint64_t hyperv_syndbg_query_options(void) +{ + return 0; +} From patchwork Mon Nov 18 13:42:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 13878617 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 705C6D49221 for ; Mon, 18 Nov 2024 13:43:52 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tD21x-0000Hl-RX; Mon, 18 Nov 2024 08:43:05 -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 1tD21w-0000HE-3w for qemu-devel@nongnu.org; Mon, 18 Nov 2024 08:43:04 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tD21u-0005RA-JW for qemu-devel@nongnu.org; Mon, 18 Nov 2024 08:43:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1731937381; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LtrWG0BY5YXvtznR58NqvTwNft4cx/F8PPpsoNdE91E=; b=jGXJdwvSwL6eGpcv/GoUUn6IHDFxapecJdkkuw3H0/BDBJgfBlzKlvpc5UFHPsCPCRurEM 9WdksjbdbHqRl+XzyH/5TUgI9BTrxOGOQ/K6Z8kgUNwYbqPWaGguuIJK8wMOI2s01ldcZf Iuyr6/zWG63YWJIxq5ccFkQveWCWvDg= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-554-Yc1jwTM8OxuMn2IoL3XmKg-1; Mon, 18 Nov 2024 08:43:00 -0500 X-MC-Unique: Yc1jwTM8OxuMn2IoL3XmKg-1 X-Mimecast-MFC-AGG-ID: Yc1jwTM8OxuMn2IoL3XmKg Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-382480686f2so531600f8f.1 for ; Mon, 18 Nov 2024 05:43:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731937378; x=1732542178; 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=LtrWG0BY5YXvtznR58NqvTwNft4cx/F8PPpsoNdE91E=; b=hN8KhaNlRFWfBJlBkeKhrpbnijzOIce+FICkVB8iaqOoIQpfbiDu/bNjdnc2GB9NV7 yhw9IlqNqli6zXhyRPCzKmhxdC2Mj1rnVsgEXdBZ7SH+X6Bz/uc05mX9nqlz1YVf+HCe ewGrXjtQWFtI+xJjd1wQC6FxkEmorMYW3IKiWZ29OWhRq2ZRo52RPvY+icyxZKwBUjcB 5gaLKiAJ8bsl4OmIoZ/PnjJuwa+LEw0AGSb6fDpTBx6Ys752PAhAvfYiX+/mLbh/KC2k XJweDE9GVkUoBTfgjC2LKb1WsEKcnRRLedq73k+3m0v66HzC0krvDReIE1m3FjsoT86/ wn/g== X-Gm-Message-State: AOJu0Yz9u4gynF2cBr2w+tGw4dltsFVILhddymclfUfl1k5Wu0ac/Hf4 d92oC+hi6a1df94TpXhh3gkJfsZd6C8ryPiFrSj7H5yONfQrQ07/qHNPqLhuwnW9lDKQ6m50bZk XAUFmeoDnzlfDh+rkPIVvmy64XX3cNLm8n21G5EZtKpiG6+7+86DtZczPdvvZkcTsCgPiGTjFBB 2DUY19Pha+5VsJ7mA5fw3CUdwtu3Myx9O5yyIk X-Received: by 2002:a05:6000:2185:b0:382:2290:3257 with SMTP id ffacd0b85a97d-38225aafafbmr6872043f8f.49.1731937378672; Mon, 18 Nov 2024 05:42:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IGgolQJvEI/CIXalnG63a8lVZbj5LWTG9tnXB8cN2RvQFSPm6eTGjeyzBi3xs/359nsQS196A== X-Received: by 2002:a05:6000:2185:b0:382:2290:3257 with SMTP id ffacd0b85a97d-38225aafafbmr6872027f8f.49.1731937378194; Mon, 18 Nov 2024 05:42:58 -0800 (PST) Received: from [192.168.10.3] ([151.49.84.243]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-382398aa925sm6809834f8f.50.2024.11.18.05.42.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Nov 2024 05:42:56 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: Akihiko Odaki Subject: [PULL 2/2] configure: Use -ef to compare paths Date: Mon, 18 Nov 2024 14:42:53 +0100 Message-ID: <20241118134253.2071319-3-pbonzini@redhat.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241118134253.2071319-1-pbonzini@redhat.com> References: <20241118134253.2071319-1-pbonzini@redhat.com> MIME-Version: 1.0 Received-SPF: pass client-ip=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.142, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org From: Akihiko Odaki configure checks if it is executed in the source directory by comparing the literal paths, but there may be multiple representations of a directory due to symbolic links. Use the -ef operator to tell if they point to the same directory. Signed-off-by: Akihiko Odaki Link: https://lore.kernel.org/r/20241111-p-v1-1-001006c68b7e@daynix.com Signed-off-by: Paolo Bonzini --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 096b1fddb70..18336376bff 100755 --- a/configure +++ b/configure @@ -13,7 +13,7 @@ export CCACHE_RECACHE=yes # make source path absolute source_path=$(cd "$(dirname -- "$0")"; pwd) -if test "$PWD" = "$source_path" +if test "$PWD" -ef "$source_path" then echo "Using './build' as the directory for build output"