From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 25A7BC07E9C for ; Thu, 8 Jul 2021 17:27:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0B7D561876 for ; Thu, 8 Jul 2021 17:27:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229768AbhGHRaN (ORCPT ); Thu, 8 Jul 2021 13:30:13 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:21166 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229631AbhGHRaM (ORCPT ); Thu, 8 Jul 2021 13:30:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1625765249; 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=u4LV11iVZELSo/KvcHxZoYC72lDjZ2+nfqoEBWf9Mnc=; b=ZxhhaTLdNiV3kbTw1k3lyhx8LzKrx0imQgka/Uvvj/rmDxybaGYLOUsuEsAzsfhyu0wfvr h9eQEKMiuVoD9ljQ0YfOKNZoYO/x3tdskU4TQOfNENwCT5Uu3ZAxcFtAbI04L+9SVXukcZ qQdlX5TBvgKJJkFmyxOnP2J/T4Dh0II= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-299-MsqpsGnhOkyASMHRzqx6nw-1; Thu, 08 Jul 2021 13:27:26 -0400 X-MC-Unique: MsqpsGnhOkyASMHRzqx6nw-1 Received: by mail-ej1-f72.google.com with SMTP id de27-20020a1709069bdbb02904dedfc43879so2145535ejc.1 for ; Thu, 08 Jul 2021 10:27:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=u4LV11iVZELSo/KvcHxZoYC72lDjZ2+nfqoEBWf9Mnc=; b=sWLWpDxU7u+7IUtOBcJYWNIZXlZKidQWNvr0C7UmebAGOHJwJkg7Bv+CsWeDjZd8Pu QjIJUzRddjpCxNBPeIRv5AtsxmFaUGT2OaYHFhXOgXk7bGFBft8o/AAX0euujOVsVZnP d44XrSLQJXinNq6eirKFqKtHOZzDlHZKRbfu2QHePkKMhn3XJZGj/294zqPTM3MUUVgv 3EkW8za42gj6NGEzmjJlH61ywVCxFXk6nWtLRBpqcdSWvhvXG10YEjlzSHgiQ01JTZ6O BZuxFdMbYa0wxey4TRJ8MXtr37pOw4GDKqQdooaH8O/S/Svep798kEnlDtpydLA7u+S+ X6tg== X-Gm-Message-State: AOAM530ZAIwW3xt1cRsp2m8zkXrAjlvVNO2JaZQyb5wmCVWCW0dPjWdD VWVlLK4+zV88mzprz71+FcmiZ9vyg7OrVmSvAxnSGaHE0u3Z0jsfNHKfA2HMKtWPd0xXySh9/W1 NaoUCEPadNnGn X-Received: by 2002:a17:906:7946:: with SMTP id l6mr31290147ejo.230.1625765245300; Thu, 08 Jul 2021 10:27:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydovD1OMBAglcKZ1uGCI/v9I2vrIp6kHn2A3kRJnPzGsueYd/9IRuLmfKQXrnCl2+HfiNwyg== X-Received: by 2002:a17:906:7946:: with SMTP id l6mr31290142ejo.230.1625765245167; Thu, 08 Jul 2021 10:27:25 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id cz9sm1602272edb.76.2021.07.08.10.27.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Jul 2021 10:27:24 -0700 (PDT) Subject: Re: [PATCH 1/6] KVM: nSVM: Check the value written to MSR_VM_HSAVE_PA To: Maxim Levitsky , Vitaly Kuznetsov , kvm@vger.kernel.org Cc: Sean Christopherson , Wanpeng Li , Jim Mattson , Cathy Avery , Emanuele Giuseppe Esposito , Tom Lendacky , Michael Roth , linux-kernel@vger.kernel.org References: <20210628104425.391276-1-vkuznets@redhat.com> <20210628104425.391276-2-vkuznets@redhat.com> <595c45e8fb753556b2c01b25ac7052369c8357ac.camel@redhat.com> From: Paolo Bonzini Message-ID: <4318c980-6eff-7b74-ae99-b3210021789d@redhat.com> Date: Thu, 8 Jul 2021 19:27:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <595c45e8fb753556b2c01b25ac7052369c8357ac.camel@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On 07/07/21 12:28, Maxim Levitsky wrote: > Minor nitpick: I would have checked the host provided value as well, > just in case since there is no reason why it won't pass the same check, > and fail if the value is not aligned. The reason not to do so is that it would allow a guest running an old kernel to defeat live migration. Paolo > Other than that: > Reviewed-by: Maxim Levitsky