Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp57141pxb; Sun, 15 Aug 2021 23:11:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaXutsRqoJC9sN5djEej0p9dsJIotqEq28myGbpAQ+eEpMoohVNi8kCREMxk1FAmBvtal8 X-Received: by 2002:a92:9502:: with SMTP id y2mr7953546ilh.170.1629094286060; Sun, 15 Aug 2021 23:11:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629094286; cv=none; d=google.com; s=arc-20160816; b=AYEljfRPPeOQjKPi2oIB+CwkcG1AGL2T6z2qP2A6xUU4LEeBtywpV4HOGAUFJ6KXjz Lc3Jg69GU/SSf63KAEqsuYNmOBa5TmXAkD4qEaS/gfVftVbtBxS15uiSKYqHQ4QD7lUC 2Yx6Dr5L0vQqGQhi7hfXdRj/5ZwKAyG2oI/Q3rg7Sh9tZvKOxUl3KayFw6Sxqhtmz/o3 ZxyGvOcNGAqFOkVzJ/KFrMfnqEV2ny4NqJO60a1DtCzKajFs6zek7+ZldNgaFC92cjzb CdZwZyMbO/eVl1/uJF77FgeAF7Z23if9uIuEs0YGbYpf8ErvbCt8829zJxt7hyoL0aSA orGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=qrryK/im30oDwYvrZ318Z+NzXo8/VftTbxhnUOHxq7g=; b=S9lQua8Txu6gOFs8cwEGb+imFVBSGazA1OmBubGoDmDDZS6uGYkEfQObmyOsnRh+QL Wb/tq4x7YGRUncRIah08EoBeuD6i4o8dFsu+wfQUSTA/E9bWYhyTLjy9cQg0NST/mb+i pvvs9zPmoa2EP28pbjg9IPwB1Q5exxBEBI1Ww3BLvbWxyZREEfBPStIwB80A3CKOZGuz gEft90j2n2a4ebxc/EcbWD09kfpwcCgbgPYHrCm79ZMt2H+VZkEZRolrphiluyNk97mY 3IwFVX9t2aMmMaVKbYDMvcMOCsd3XeI1/aM6n6Zi4oCuQiYTBU5gIYBkm4yK0npT+5+X gSfA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kingsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i13si12266895ilm.90.2021.08.15.23.11.15; Sun, 15 Aug 2021 23:11:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kingsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233271AbhHPGKw (ORCPT + 99 others); Mon, 16 Aug 2021 02:10:52 -0400 Received: from mail.kingsoft.com ([114.255.44.145]:34924 "EHLO mail.kingsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229623AbhHPGKu (ORCPT ); Mon, 16 Aug 2021 02:10:50 -0400 X-AuditID: 0a580155-983ff7000002fcd1-2a-611a01488ceb Received: from mail.kingsoft.com (bogon [10.88.1.79]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.kingsoft.com (SMG-2-NODE-85) with SMTP id 1C.C7.64721.8410A116; Mon, 16 Aug 2021 14:10:16 +0800 (HKT) Received: from alex-virtual-machine (172.16.253.254) by KSBJMAIL4.kingsoft.cn (10.88.1.79) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Mon, 16 Aug 2021 14:10:16 +0800 Date: Mon, 16 Aug 2021 14:10:15 +0800 From: Aili Yao To: Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Thomas Gleixner , Ingo Molnar , Borislav Petkov CC: , , "H. Peter Anvin" , , Subject: Re: KVM: x86: expose HINTS_REALTIME ablility to qemu Message-ID: <20210816141015.31e329e3@alex-virtual-machine> In-Reply-To: <20210813175420.62ab2ac2@alex-virtual-machine> References: <20210813175420.62ab2ac2@alex-virtual-machine> Organization: kingsoft X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [172.16.253.254] X-ClientProxiedBy: KSbjmail3.kingsoft.cn (10.88.1.78) To KSBJMAIL4.kingsoft.cn (10.88.1.79) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprNIsWRmVeSWpSXmKPExsXCFcHor+vBKJVo0P1P1eLzhn9sFtM2ilts nX6FzaJz9gZ2izlTCy0u75rDZnHpwAImi/3b/rFaHD1/i8li86apzBaTWi8zW+y684TF4seG x6wWz1qvsjjweTw5OI/J43trH4vHzll32T0WbCr12LSqk83j3blz7B7v911l82iceo3N4/Mm OY8TLV9YA7iiuGxSUnMyy1KL9O0SuDJeNW9iK9jMVvHg1DaWBsb/LF2MnBwSAiYS33+vZ+xi 5OIQEpjMJHHxRg8LhPOaUWLp7sdsIFUsAqoSm+c1gdlsQPaue7NYQWwRgbNMEnv+M4M0MAu0 M0o83rqFHSQhLGArseHPQWYQm1fASmLnjLNgDZwC1hKzly4FiwsBxedvuwB2Br+AmETvlf9M XYwcQCfZSzxerwjRKihxcuYTsBJmAR2JE6uOMUPY8hLb386BGqMocXjJL3aIb5QkjnTPYIOw YyWurb/OOIFReBaSUbOQjJqFZNQCRuZVjCzFuelGmxgh8Re6g3FG00e9Q4xMHIyHGCU4mJVE eIuFxRKFeFMSK6tSi/Lji0pzUosPMUpzsCiJ82q7CSUKCaQnlqRmp6YWpBbBZJk4OKUamBSi VwnfFNqt0rC8V0v9dE9hUn1s6dNA98yJDY1MS/ft/a+wwleFlUHvXcCVvqiwNz27755mmBfl XTbx+ZrfqqduFE4rsHv173CZb5GsjZn6kdt7W19P+FXxzjjo8MG7lvfXaMydqX5i6wNJwZv1 nBdaD3s438icZuWuXfmac86fJ2tP3J4yc5VfbCin6hulex0F3iIy01dMSF2a/oD//j/jKpmy hZKnOgT6ghWquj+zFPgs9flZLP5DwZ5zY+WFZy+v38jY5Vj84fyuvjsVid1RWz+W8s3L3lHu XVlf3LxZQ/qa6OyTKdw/JUwWqK/5OUtdsV2sf5XNbg8z9oS3Zw6xiMxb2ffYy3Grr7CXgxJL cUaioRZzUXEiAPrdudMuAwAA Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 13 Aug 2021 17:54:20 +0800 Aili Yao wrote: > When I do a test that try to enable hint-dedicated for one VM, but qemu > says "warning: host doesn't support requested feature: > CPUID.40000001H:EDX.kvm-hint-dedicated [bit 0]". > > It seems the kernel hasn't expose this ability even when supporting it; > So expose it. Sorry, I check it again: Ihe issue I met is because of my qemu's mis-backport, In qemu, kvm_arch_get_supported_cpuid() will set the feature bit: if (function == KVM_CPUID_FEATURES && reg == R_EDX) { ret |= KVM_HINTS_DEDICATED; found = 1; } But I have mis-ported the KVM_HINTS_DEDICATED and KVM_HINTS_REALTIME macro; And it lead to the error I met; And it's right that kernel don't expose this ability! Sorry again!