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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C93A7C433EF for ; Fri, 25 Feb 2022 13:17:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241076AbiBYNRr (ORCPT ); Fri, 25 Feb 2022 08:17:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241068AbiBYNRo (ORCPT ); Fri, 25 Feb 2022 08:17:44 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0AEA518DAB5 for ; Fri, 25 Feb 2022 05:17:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1645795029; 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=98ASH+Ojql5TMdnoXEkFgsLyBZPJgLPGXzcJbfRwQ+Q=; b=Ie9iKciUFJ9qr11GA+DFSx2chBkbiNYUIVMSmLs4uUgc2QdiUHwnjNra/SYoUz4ZFV5RSs 3X3MAOeIV9xJKSBo8j4Av0CMSXGumkbexxV+kYmzD5u7IKJSM2E9b/OCULVStH/Q5Ylpv0 cpSn57XZRCjAc3EnvxKf8dmVj5ryJFo= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-133-nusk-U3WMAyWTMRewVrhIg-1; Fri, 25 Feb 2022 08:17:07 -0500 X-MC-Unique: nusk-U3WMAyWTMRewVrhIg-1 Received: by mail-wr1-f71.google.com with SMTP id q12-20020adfbb8c000000b001ea938f79e9so865423wrg.23 for ; Fri, 25 Feb 2022 05:17:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=98ASH+Ojql5TMdnoXEkFgsLyBZPJgLPGXzcJbfRwQ+Q=; b=RUQKB/mgxiaaBwPiG5i84+BXXGj8Rgwu5/lTn4zh+NU8hCcD45cjfnuhA0itdA7gOy e8cP+zKJAiRt+4VlunUywxLvVleblR95RfuN3mR1GHRQ6oFzRG3GmoCHj2EqoVYu2Cg8 3PA6crbWlgdmI4mbDvUWgB3BOshr1KIB4xA/BNGcGTbeecX2i4IXi7lpAIOfRXIjb4X4 siXqb6IdM8rOZpng4xHXI65icUWPIRvvxkiJJM/Vo+wq47XRJo/pw0FRYqCngTXkcdDg 13x1EMPd1skIrXcsplqlp4HHSHyrWLvLGxNXyh8UXywjB9Xg35uvRdSAvyk0XcUG28Px CGag== X-Gm-Message-State: AOAM530LhxLcdn71xHBYm7LT0CoPs0sAeycdshqgRQp+X6jt18X9qzts 1+ZXEWHsMFgIl0BiEZBCr2VKkyUf55qb590p4GE3zikhpr0VuyqaJ8B+nV8Vd2Jpkx4o1f6XBh8 1PIc0nzaWRO8q X-Received: by 2002:a1c:5459:0:b0:381:40b0:1ee8 with SMTP id p25-20020a1c5459000000b0038140b01ee8mr680654wmi.66.1645795026794; Fri, 25 Feb 2022 05:17:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJxN7pVXxVV0JtwbnyQO2DO/9DYfN40PnDMUu6i7eqpKqOzRak+xNGQ/g128tClDoCJh23soQQ== X-Received: by 2002:a1c:5459:0:b0:381:40b0:1ee8 with SMTP id p25-20020a1c5459000000b0038140b01ee8mr680642wmi.66.1645795026563; Fri, 25 Feb 2022 05:17:06 -0800 (PST) Received: from ?IPV6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.googlemail.com with ESMTPSA id v5-20020adfe4c5000000b001edc1e5053esm2214887wrm.82.2022.02.25.05.17.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Feb 2022 05:17:06 -0800 (PST) Message-ID: Date: Fri, 25 Feb 2022 14:17:04 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 0/4] KVM: x86: hyper-v: XMM fast hypercalls fixes Content-Language: en-US To: Vitaly Kuznetsov , kvm@vger.kernel.org Cc: Sean Christopherson , Wanpeng Li , Jim Mattson , Siddharth Chandrasekaran , linux-kernel@vger.kernel.org References: <20220222154642.684285-1-vkuznets@redhat.com> <871qzrdr6x.fsf@redhat.com> From: Paolo Bonzini In-Reply-To: <871qzrdr6x.fsf@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On 2/25/22 14:13, Vitaly Kuznetsov wrote: > Let's say we have 1 half of XMM0 consumed. Now: > > i = 0; > j = 1; > if (1) > sparse_banks[0] = sse128_lo(hc->xmm[0]); > > This doesn't look right as we need to get the upper half of XMM0. > > I guess it should be reversed, > > if (j % 2) > sparse_banks[i] = sse128_hi(hc->xmm[j / 2]); > else > sparse_banks[i] = sse128_lo(hc->xmm[j / 2]); Yeah, of course. Thanks! Paolo