Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp734418pxu; Fri, 23 Oct 2020 11:57:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZ7hQYHnHPY3Upqh4fQxbe79d8QcciTH08UpRur4I44dufXMU+ftJ2zjBeMiBwitQf+qkX X-Received: by 2002:a05:6402:1506:: with SMTP id f6mr3730037edw.324.1603479420895; Fri, 23 Oct 2020 11:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603479420; cv=none; d=google.com; s=arc-20160816; b=kugIugyFWXlCMnc3i5+zjHISXYao6uhGQQU+mKvxM2+SRTEO8KAHtbJeKL1Te09WF5 U8n0UuEs/Id34P+ZMBeLzZjVJHPW7dJIv3ezLceme1LnhAbw6mg8b60sfZ0TPdFOp1Te L1VDNcXUhRsvmSdopV5qjT9Cx8ZeKwdbX4CJoqAZodo1S3ZpaRvBxaYJqlOTy5momAGM Z+lX1+/c/HvFed4j/su3U7a3mp/8Y54qZxGzq2Ula/DSoan1JKXOy5AK7bZGXV7Ccxlk +SD7tsnn6SfBIT+XrdSDf8/P7qJ7y49TKps6tsOUNVHkckyOsNf2Oek5WhHuEdCog65n /+rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=kDz4gn4LXn8aroBJkBNj8TPyfOZEVwrvC4JEhPovxCc=; b=t5oqa9hd0+TSaJCY71fyEln7j0HnAFXRo2NlChyBExnCkfMCDJDt1+JtGAL6K5gLcV UiVhMctRhtfjPXU4x93zqXNgWlrJhQG45yNEONpfHwYk98yORgL6jG5Rz48c0Gw4x+8L 5xCLryCj4qC+ufH/lxC8YAPLw3LEYDARt6NT4dKYKvVVleBr+gT2E/m6jfK0mN6Es0Jt 3ljVcttkUMhqRnk7luqJerWRJJVGVaoLQJ7TqyUuNGjFKl1Og+60vM4LWpq1ot5p3D6N vbxLpNMrZwG/rV5uYQveSuVg7A3qCFPb9Wtv1thWT2wxZW2QnxZu417wbnrSJosQcnzs AADg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=tjp99hRn; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v22si1443024ejr.474.2020.10.23.11.56.38; Fri, 23 Oct 2020 11:57:00 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=tjp99hRn; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751609AbgJWRDn (ORCPT + 99 others); Fri, 23 Oct 2020 13:03:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S464587AbgJWRDm (ORCPT ); Fri, 23 Oct 2020 13:03:42 -0400 Received: from mail-oo1-xc43.google.com (mail-oo1-xc43.google.com [IPv6:2607:f8b0:4864:20::c43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CB7DC0613CE for ; Fri, 23 Oct 2020 10:03:40 -0700 (PDT) Received: by mail-oo1-xc43.google.com with SMTP id l18so553203ooa.9 for ; Fri, 23 Oct 2020 10:03:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kDz4gn4LXn8aroBJkBNj8TPyfOZEVwrvC4JEhPovxCc=; b=tjp99hRnrJBWxkp6Vt0ZTXhFtCr8W0JWcM22W0i9CA7yy4mHa6ojSztPNyjJ3u7rtD 7sCLlloe1t0myru2qd38kAns9VptXqnUuhDcXVC5gohNzj3MXvXdYgxqizZ3I3VtllXf p5Xk4rlkLzsQHoKm9imbgsaeTbeHmYfx3sZz7CylGiqMZtt89WZzVA4LxCybWYkjDbXs UFgov1fNAKJ1g1C3CbOHJNiAiNpSzX2y2ovtd1Ekthm8VPID/De9cCy9ciEvaMT/P5Pt S++RquTwOhZMxYYRa1KSo/UDyv3g/bbC9cF0E5TRG0Jsn0GdNfx4nlaWOeGd8hoH+c5D f5AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kDz4gn4LXn8aroBJkBNj8TPyfOZEVwrvC4JEhPovxCc=; b=Vo+4lc5ZsNhaC4BRVASR6vAuapy7SeE88gvLU7AP1jGYu4w9pG8D7xkbHJQCslKlyc VZolXUWGGrPQ0o1ScTeOPmk0RxZW6Ms0WozpWNIDv0R7wbhyzbodZ/YL1ya4pwCh8Qxj vBd/KMPMCjmEA/NCJH0jY9iQpdD5pmVz1EbwIbxWS3vzKyvavsDfMtzEcA6Y7sNJv5LZ Fn2oYZGutFpkkT8/mXBvoh3mtHzTThEQco7c2c2NMhnYZAilqsrIm38rAISJiOr+Wdcc T/rNgNqmUSaID7scWhw8FwQyRrwYKL4rUcmLu4DHn3D2cJvbMVJpXkuSI55axvT9OHSS hX8A== X-Gm-Message-State: AOAM530fgq3PHLpB0Nop48wFjP+XeUY4wAXWmodgS3ZxVI8vLeU6Mksb yZKjmz7YR5BuXCGuUX8OHhi3pjDxFAJ4FMawhs/Lf0cZ6Wg= X-Received: by 2002:a4a:dcc8:: with SMTP id h8mr2435632oou.81.1603472619282; Fri, 23 Oct 2020 10:03:39 -0700 (PDT) MIME-Version: 1.0 References: <1603330475-7063-1-git-send-email-wanpengli@tencent.com> <281bca2d-d534-1032-eed3-7ee7705cb12c@redhat.com> <823d5027-a1e5-4b91-2d35-693f3c2b9642@redhat.com> In-Reply-To: <823d5027-a1e5-4b91-2d35-693f3c2b9642@redhat.com> From: Jim Mattson Date: Fri, 23 Oct 2020 10:03:27 -0700 Message-ID: Subject: Re: [PATCH] KVM: X86: Expose KVM_HINTS_REALTIME in KVM_GET_SUPPORTED_CPUID To: Paolo Bonzini Cc: Wanpeng Li , LKML , kvm list , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Joerg Roedel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 23, 2020 at 2:07 AM Paolo Bonzini wrote: > > On 22/10/20 19:13, Jim Mattson wrote: > > We don't actually use KVM_GET_SUPPORTED_CPUID at all today. If it's > > commonly being misinterpreted as you say, perhaps we should add a > > KVM_GET_TRUE_SUPPORTED_CPUID ioctl. Or, perhaps we can just fix this > > in the documentation? > > Yes, I think we should fix the documentation and document the best > practices around MSRs and CPUID bits. Mostly documenting what QEMU > does, perhaps without all the quirks it has to support old kernels that > messed things up even more. > > Paolo I'd really like to be able to call an ioctl that will help me determine whether the host can support the guest CPUID information that I already have (e.g. on the target of a live migration). At first glance, KVM_GET_SUPPORTED_CPUID appeared to be that ioctl. Sadly, it appears that no such ioctl exists.