From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:a17:907:c68a:b0:84d:2074:29bb with SMTP id ue10csp252735ejc; Thu, 19 Jan 2023 03:24:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXvA9iJvdUi/kCJ939dJWC4H4Xu3NZUvHLVPxlFpl4Jp5owp0T/YwO47uN8wqQlPp1MgjtIW X-Received: by 2002:a05:6214:3a05:b0:531:e83e:c28e with SMTP id nw5-20020a0562143a0500b00531e83ec28emr16493033qvb.0.1674127498300; Thu, 19 Jan 2023 03:24:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674127498; cv=none; d=google.com; s=arc-20160816; b=BngvPNP9PdB0isYRxQQoDafV5EQWB15jajsUOKlfoeuyFw+Zi1Q618oGZpO5nnk2vk AQ3kz2Kvg7S8FsDtCdt1dCB44J/4id1HvKN1aCQaUdEa7JoN8V49/6uINZfzEOhm9si8 rUGMwtHKhUCejByqXVzVJUXwiKE1zA0SKCGoFtBsBSa//hg73shVOps6+wlhUv/Wl7Ij 2D3SV1LSRoVkZa9CE7b+xhnB3hMIpjXlfqBocMtoHhSQit/AG2wLxXRX0Qn/0H1XIsjP YYtAlMMRzpZZZpLyt+kCugBLdePW8ddQG/RRnoBlxJlWvhZ3zMZTPOeWzipbBhlCiIg8 zZ6w== 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 :in-reply-to:subject:from:references:cc:to:content-language :user-agent:mime-version:date:message-id:dkim-signature; bh=VbtSK2KFspvDuVYWNxSXyHBfyDbXnwCYgu4bPkSZ/v0=; b=LL00IwRXWDfNaklgws7zlfhLAlOXJCpQ1FBUsSXFcyu/NouOQ92hxtk7vnbdMagHxy a9wFQ0qIV0ymTRtTNfyUHBcXoN23FwxpVFkMkItEin/OySc0mmfJK2NynLiiFqp7L+0a VYjgl5M8zeWkzLjJ1xh8U4/20j2m74uiEIt7USbvl/ewAU2Hgpdum2JMgSte/jqZvovl wsiawep44ZpH8AaDq9D0/sX4I2jxAO5kadG4NZDEYvDIb+MFeP7/WgTWizwH1BpMT8Al oTQIjOlIiBoNVx6Uu7RIsUgNNdbCcvLmOuz3PHWWyj8wImLFVd7giyn2HuPwDIO/Fvow eL1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=adFytE7t; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id oo8-20020a05620a530800b006fccc70f68csi21040927qkn.313.2023.01.19.03.24.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Jan 2023 03:24:58 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=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=@redhat.com header.s=mimecast20190719 header.b=adFytE7t; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pIT2H-00025V-0M; Thu, 19 Jan 2023 06:24:49 -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 1pIT2F-00025G-LJ for qemu-devel@nongnu.org; Thu, 19 Jan 2023 06:24:47 -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 1pIT2E-0002uR-3V for qemu-devel@nongnu.org; Thu, 19 Jan 2023 06:24:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1674127484; 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: in-reply-to:in-reply-to:references:references; bh=VbtSK2KFspvDuVYWNxSXyHBfyDbXnwCYgu4bPkSZ/v0=; b=adFytE7tLX86RjOtZ4jBW8teBFi+8b3kP29ayJUo3N/+qo/5sulNcP/GgjLgNis/AMT277 OYSdCcysr0F3+TtvUKs+ibIlbhms1sOq+RUVoU3k16EvT0bbnjE17bChJqQ/mS9h1V/Ql9 oFc2SdNY/9IEfk8wK0kuz0dU0njVGFc= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-107-k1CITG_kNc6oKwgkWbRdJQ-1; Thu, 19 Jan 2023 06:24:43 -0500 X-MC-Unique: k1CITG_kNc6oKwgkWbRdJQ-1 Received: by mail-qt1-f200.google.com with SMTP id a13-20020ac8610d000000b003a8151cadebso778552qtm.10 for ; Thu, 19 Jan 2023 03:24:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VbtSK2KFspvDuVYWNxSXyHBfyDbXnwCYgu4bPkSZ/v0=; b=ddZwdmI59kTe7dAPJD58SRMHGcWe8eqF7hwPtC60T1vnhXCCr/nIA1iNRiRAbBb7/H mQDPOmOPCuoimKAQyMAf2Q+lzn/GCu5+/poz06m3w1QjXLsU6ZetLAkxHDaBlLTKpqMY RWn11vC9Ce68OXIs3dMy8AIQHqrcRJDZ63EwjwRbVoOuUVF/Uu0K1G1uMV7/L4H9ddci XqcX/kDTFn2Ze9onPE5rTmUZ1GqPzwmrRH7P5/8DNJcCFB0nALqbcHVIrnubMi0rbvHx YxSH8+O4bPM8H3RQslNP91hn4ObwAEQyp5G2WJKiSpdJ7Bg95j2/fxqmXNERvUqv6uK1 HG5w== X-Gm-Message-State: AFqh2kp1vd/WwkM5ePsFMB4PBPToOPFF2OUd3Ah8zeIvjbQPesTboSHt NYj23iE6cF3/nEHD8J2Bs5ftgSaradYB4Vzgc78i6vkHbGyULGDcXZCIQwWWZ9ZiQRWIRC4djEc ogOLSg39bP1exYuY= X-Received: by 2002:ac8:5457:0:b0:3b6:36f8:141f with SMTP id d23-20020ac85457000000b003b636f8141fmr13076584qtq.48.1674127482376; Thu, 19 Jan 2023 03:24:42 -0800 (PST) X-Received: by 2002:ac8:5457:0:b0:3b6:36f8:141f with SMTP id d23-20020ac85457000000b003b636f8141fmr13076570qtq.48.1674127482129; Thu, 19 Jan 2023 03:24:42 -0800 (PST) Received: from [192.168.0.2] (ip-109-43-178-207.web.vodafone.de. [109.43.178.207]) by smtp.gmail.com with ESMTPSA id l14-20020a05620a28ce00b007062139ecb3sm12258763qkp.95.2023.01.19.03.24.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Jan 2023 03:24:41 -0800 (PST) Message-ID: Date: Thu, 19 Jan 2023 12:24:38 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Content-Language: en-US To: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , qemu-devel@nongnu.org Cc: Paolo Bonzini , Laurent Vivier , Fabiano Rosas , Juan Quintela , "Dr. David Alan Gilbert" , qemu-arm@nongnu.org References: <20230119100537.5114-1-philmd@linaro.org> <20230119100537.5114-7-philmd@linaro.org> From: Thomas Huth Subject: Re: [RFC PATCH 6/8] tests/qtest/libqtest: Allow checking for HVF accelerator In-Reply-To: <20230119100537.5114-7-philmd@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=170.10.129.124; envelope-from=thuth@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.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.089, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-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+alex.bennee=linaro.org@nongnu.org Sender: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: Wm/y765Tvdux On 19/01/2023 11.05, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé > --- > RFC: CONFIG_HVF is poisoned. > > We could pass host config definitions to qtest using: > > diff --git a/meson.build b/meson.build > @@ -2547,6 +2547,7 @@ foreach target : target_dirs > > accel_kconfig = [] > foreach sym: accelerators > + config_host_data.set(sym + '_QTEST', '') > if sym == 'CONFIG_TCG' or target in accelerator_targets.get(sym, []) > config_target += { sym: 'y' } > config_all += { sym: 'y' } > > Then test for CONFIG_HVF_QTEST ... I don't think that would really work well. The qtests are build once for all targets, and HVF is only available in the target that matches the host architecture. It's poisoned on purpose. The TCG accelerator is special, since we have it in either none or in all targets, that's why we can use CONFIG_TCG there. The kvm part is also rather a hack... we should maybe rather additionally use the "query-kvm" QAPI command to check whether it is really available...? To fix this properly for HVF, I think you'd need a way to query the available accelerators via QMP, too... Hmmm, weren't there some patches for something like that in the past ... can't remember right now ... Thomas