Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4384257imm; Fri, 18 May 2018 04:20:08 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoBkhH9DSmyZAis19kd+ECi2O5qyVYWMBcmNGDy4VBzVgB2Qlt9WjeVMqjSn4hvVxDcTFkq X-Received: by 2002:a62:3bcb:: with SMTP id w72-v6mr8994902pfj.129.1526642408302; Fri, 18 May 2018 04:20:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526642408; cv=none; d=google.com; s=arc-20160816; b=xMGDa1o73ChRh+jKqgaG4SPhckaP3+0y5QsosSYMH4ExSRSe5bdh1gExxcleGOvCQb v7Q2VfL6zFFMOzfaP9psEyEGQ4yX1wUxBCTyAZApZ3cCSlcacF5NE+0DbXs9l0WxijEM SeolHfpieuOivpMFEiHGGSbPnDTOFwi6rArA4gJLua25PKBomSb00lP4zCnPjwrswbiE fCzTBTVGIRif8SlMRnGZ8nYVEqEmL7O9zOYSh0e2cDS+2qQyAN4aHem00RDsC36nP6Zd k/s5u0LqLJmYEAuS/XbwMqC6pK7ST3Hue+Kk47837AuO/1UGDgQqvJ24QevsKYqXTBVC VpDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from :arc-authentication-results; bh=Zw0ijDflSin6sV3sNTLe6Mpkm0PXT4TdiCQ4fQS/l5I=; b=BhnD5nhXqmrXGasmEooVnHn6OdHFq1SO0dSFeijw593/SOcArILJrD82EwFJXC4sni bgRuf3BPA4g6XUMDr9MxJi5hT4Gzar8poRv0fyrQMk/NdhLtKFeE5B0pEEsF3PuqUspi xU0/o/YMZdqNJ+IJy9PSoYxAMw/J0REzwG3XVqmsBmtAHbsN4gW3NRQzAy2XyVBuAUvF iv0lfDe3/yTGKdKtEXILF6/qP0d4XMbMEHUGlO63LMOkPe7ax4UkPsNFtcESEVd6EjaH VwJnlgt4RKT24wEIhgtwGN/ZBRGRJy7fnPJAGIVbT2HN9uLy4edgvaaQSPkOkqqHAtmI SINw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j84-v6si7400725pfk.203.2018.05.18.04.19.53; Fri, 18 May 2018 04:20:08 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752663AbeERLTm (ORCPT + 99 others); Fri, 18 May 2018 07:19:42 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:42232 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752336AbeERLTk (ORCPT ); Fri, 18 May 2018 07:19:40 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4741B40711DD; Fri, 18 May 2018 11:19:40 +0000 (UTC) Received: from vitty.brq.redhat.com.redhat.com (unknown [10.43.2.155]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 67DFA2026DFD; Fri, 18 May 2018 11:19:38 +0000 (UTC) From: Vitaly Kuznetsov To: Wanpeng Li Cc: kvm , "the arch\/x86 maintainers" , Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= , Roman Kagan , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , "Michael Kelley \(EOSG\)" , Mohammed Gamal , Cathy Avery , LKML Subject: Re: [PATCH v4 0/8] KVM: x86: hyperv: PV TLB flush for Windows guests References: <20180516152131.30689-1-vkuznets@redhat.com> <87bmddgrex.fsf@vitty.brq.redhat.com> Date: Fri, 18 May 2018 13:19:37 +0200 In-Reply-To: <87bmddgrex.fsf@vitty.brq.redhat.com> (Vitaly Kuznetsov's message of "Fri, 18 May 2018 13:00:06 +0200") Message-ID: <8736ypgqie.fsf@vitty.brq.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 18 May 2018 11:19:40 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 18 May 2018 11:19:40 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'vkuznets@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Vitaly