Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4418539imm; Fri, 18 May 2018 04:56:51 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrJVq68nmD1RAwFlXP5V+STrjOiIGMrSr/Zg/Iarjilx8QEKQTW+FexnIwylusICOTXWfB+ X-Received: by 2002:a62:d605:: with SMTP id r5-v6mr9232166pfg.8.1526644611709; Fri, 18 May 2018 04:56:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526644611; cv=none; d=google.com; s=arc-20160816; b=eq03vv9Of9yJCFb3El7aqE3UmMaAVICM0apc9SxpLftswZe3i/s8ALwpZWV+nqTlUZ lmEDGQMUnLDyGBrqsKf+BH1dc00bZFRKoZkES31OxJsAq/zJ/2SRTZiLtz1wXUNww7Jh YgV0mvi3DCGVxmxtSN8hp0awAkUp3x/nynRYJnUbMUj2TOX84ZTfVdqR4blKNnnEyIE3 nUfmwYAVe76TjMMZx41wr2NC1p3lczEEYu5CN71kJCHor5KrryIpZuUmfzh46c/WwoM/ GcRHoeDyJz0w9diBGyeYVCYYDXq3wbjTFEerC61y4FIkERRihOTAs5NVmL+5kUTZFYcP smQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=sN0xVovgN9iOq/ERrkRcAiw4vufaZiB4rpJxMfkF9UA=; b=t2XyvDwHof9fJmoxfamUiVBL0XMRUO0xrl+yGit7DhlA7KwcRvhqFXUL0T/jCdEyXJ vBDk77YesZC29RpaEGf8JVPDim6cxLPxR/oRQxhHyGkQW+N/NerwtmJCZKI6U/+7dx0N EnEq+XPoXXGwaNuZCk98gg+qLIpOt5B+PnHIbDhRLADgNPYUnkwurNjWXMEYWFyNGVWH TSbVXea/OpWOVxkCu5KeqATcDYawwMk+daPIU3iKw9MMUDAQpXF7ovCHlqRp9EQORb0P w0DzLFeaG6Kr/g1BhHOtt9jQ32j/3KAdz7kj/H7h2UyOqO6cl00jHbngF6jUcy7HqznP 5qZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lgQczkAi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z62-v6si5657809pgd.172.2018.05.18.04.56.36; Fri, 18 May 2018 04:56:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lgQczkAi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751473AbeERL4S (ORCPT + 99 others); Fri, 18 May 2018 07:56:18 -0400 Received: from mail-ot0-f195.google.com ([74.125.82.195]:40801 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750763AbeERL4O (ORCPT ); Fri, 18 May 2018 07:56:14 -0400 Received: by mail-ot0-f195.google.com with SMTP id n1-v6so8765287otf.7; Fri, 18 May 2018 04:56:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=sN0xVovgN9iOq/ERrkRcAiw4vufaZiB4rpJxMfkF9UA=; b=lgQczkAig4RO+iya2Qjl2wWcYAD1Aw63ggIxrgIoF71GUHPHsI1IwADHBowsvLazIp WEtry58CzGnqiV3GWHlTzwXAq2+9nhYQM73610Ef++4gVSIpeCdG0oMqTUlNFfiYt8oQ 3su5cR3Bfrj37RLsT3046y3D1LUvGxxA/PvS5pwAmHECJkpnToTKT4y/s4KRTZTDeS3F 5YBzGiIqnWPqGSc1Rt63qym/DfR5IMhvFLgrqfNQD2tJ9hhYhAMVWtiBsBBNli05OoQ4 GWbwQAsDBnTjmdAHLMLHx9hBgixAQB3jljjoPSi+ug49yyn+Qhz34w8+0dpZuZEGNbv1 vrJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=sN0xVovgN9iOq/ERrkRcAiw4vufaZiB4rpJxMfkF9UA=; b=tAJ/krgy5NAOkCkfvh58zuWtII8aOvi08idHcA7JemuZKm/Lj1Vzdhi7PHnxtu/1rt 75S++hSSEvy9QHT3V9gYp3Eq2a2FzgKAVcF6rSbAHn18eKhDiD01RQrg76slIp2ML36I d9doViXmnP8koqYiuA7zOy65azRV979jchqCQG6IGA/GKK3BSwbgXa8sWP6JClRdCRwW e/bT5zp+FlLdfQbFs9CqQtJDrSJkaZlUHYpAn2fmW57L2vr3lntbahX8YhQB5k8dMDmU SIgr2gDsQfV1dHFW0K+zVamYcoVxvgyPi9x2ed8BWyjX9jAlr1KufynFrizpkTg15gcA HGGA== X-Gm-Message-State: ALKqPwcEtpwI3HRwI2v1b5zLnSkkU+z13HdsVz3dXTyJTksMAy77Qv2h RM4cQy7Y9qMmma2FAhbqLb0n1WfQO0xCX/QW9lE= X-Received: by 2002:a9d:2165:: with SMTP id l34-v6mr6566927otd.250.1526644573855; Fri, 18 May 2018 04:56:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.70.211 with HTTP; Fri, 18 May 2018 04:56:13 -0700 (PDT) In-Reply-To: <8736ypgqie.fsf@vitty.brq.redhat.com> References: <20180516152131.30689-1-vkuznets@redhat.com> <87bmddgrex.fsf@vitty.brq.redhat.com> <8736ypgqie.fsf@vitty.brq.redhat.com> From: Wanpeng Li Date: Fri, 18 May 2018 19:56:13 +0800 Message-ID: Subject: Re: [PATCH v4 0/8] KVM: x86: hyperv: PV TLB flush for Windows guests To: Vitaly Kuznetsov Cc: kvm , "the arch/x86 maintainers" , Paolo Bonzini , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Roman Kagan , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , "Michael Kelley (EOSG)" , Mohammed Gamal , Cathy Avery , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-05-18 19:19 GMT+08:00 Vitaly Kuznetsov : > Vitaly Kuznetsov writes: > >> Wanpeng Li writes: >> >>> Hi Vitaly, >>> 2018-05-16 23:21 GMT+08:00 Vitaly Kuznetsov : >>>> Changes since v3 [Radim Krcmar]: >>>> - PATCH2 fixing 'HV_GENERIC_SET_SPARCE_4K' typo added. >>>> - PATCH5 introducing kvm_make_vcpus_request_mask() API added. >>>> - Fix undefined behavior for hv->vp_index >= 64. >>>> - Merge kvm_hv_flush_tlb() and kvm_hv_flush_tlb_ex() >>>> - For -ex case preload all banks with a single kvm_read_guest(). >>>> >>>> Description: >>>> >>>> This is both a new feature and a bugfix. >>>> >>>> Bugfix description: >>>> >>>> It was found that Windows 2016 guests on KVM crash when they have > 64 >>>> vCPUs, non-flat topology (>1 core/thread per socket; in case it has >64 >>>> sockets Windows just ignores vCPUs above 64) and Hyper-V enlightenments >>> >>> We try the below command line, the Windows 2016 guest successfully to >>> login and there are 80 vCPUs can be observed in the guest w/o the >>> patchset, why you mentioned the crash and ignore? >>> >>> /usr/local/bin/qemu-system-x86_64 -machine pc-i440fx-rhel7.3.0 -m >>> 8192 -smp 80,sockets=2,cores=40,threads=1 -device >>> ide-drive,bus=ide.0,drive=test -drive >>> id=test,if=none,file=/instanceimage/359b18ab-05bb-460d-9b53-89505bca68ed/359b18ab-05bb-460d-9b53-89505bca68ed_vda_1.qcow2 >>> -net nic,model=virtio -net user -monitor stdio -usb -usbdevice tablet >>> --enable-kvm --cpu host -vnc 0.0.0.0:2 >> >> Crash happens when you manifest yourself as Hyper-V, you can do this by >> adding any 'hv-*' feature (e.g. try '-cpu host,hv_vpindex'). > > Oh, and the 'ignore' happens when you pass more than 64 sockets > (somthing like "-smp 128,sockets=128,cores=1,threads=1") -- and this > happens regardless of Hyper-V enlightenments. But I guess it's just > because Windows doesn't support more than 64 sockets. Is there an option in the guest to avoid to check pvtlb support in hyperv? Regards, Wanpeng Li