Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4168294imm; Fri, 18 May 2018 00:00:52 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrUlDj5dsedtGnCTeKYnRkj7QtDvKHVhpVQpYT9i4eIHS9vq0Mu6WWc2l4YU6Ws6SUhXY35 X-Received: by 2002:a65:47c8:: with SMTP id f8-v6mr6508375pgs.430.1526626852064; Fri, 18 May 2018 00:00:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526626852; cv=none; d=google.com; s=arc-20160816; b=unx+8ouwgoz36tH+/qkpOYVVUvxFZkejXrfaSL1xK4WvN4A02LkIKPCeUknWZRPC8B Lm0JozY55KzaAdgjW0Vyzl3tsTScEclw7K/FBAUhlHeJjObbcEaUwettFEN7mb/9lRnh XXPmJYRMHChv3JK33FWZHqFGfrA/x7XmK0w2irU4eZZt/3qrjPJI1fna7G7ldp9HrJEA u3DM2KsaVWwb7x7Mygcp5J81oJAkBtl5W+V+i2/7m2Dd90X6TPzsQXXzlbn+49RppRZS aakAoNzJ0vwtJiDMxqEXZvBQjM5tUfAdCS+LeW+xH2VFFxPUjo7GC0OYFaZzKAt5Qu/a eHdQ== 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=4qWLyDlXkB9mVHLsNulg05kM4NRkhvt9sU7pZyWJ7rY=; b=rfzWv7ZrZ6LgwAFNK2zitPwpU65M45H/8sL4ZhQyUWWKjQHjqdCc5/50/idQqj1BDk bhrIIGCZHipilpGwBoUedL0JeN7Fl8JHMbdZhPl+OjQaxHlwjciq9RrRfs/NgjrSqVLH WJ0WCgohKHcDCgO7A3MhILx8eKdl/jrDravJLt372x2Qvgqrww0FMt9W+E8ZJ6MPdUZE MB78xa6xzWkcVmTYO9V6RVtHeXRv7DRV1ufvd0r3nCcxIqy9T5k+eEJvEtIStXTOIUJo 8rx+vsGB/rf80QuC2DCeRSPGSKT/Cfqd7M1qKLVFdO6/39WkvnwVB2tM9NmWo0K0y+99 DBIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Njxr6/r1; 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 h193-v6si5517384pgc.57.2018.05.18.00.00.37; Fri, 18 May 2018 00:00:52 -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=Njxr6/r1; 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 S1751583AbeERHA1 (ORCPT + 99 others); Fri, 18 May 2018 03:00:27 -0400 Received: from mail-ot0-f196.google.com ([74.125.82.196]:38610 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751197AbeERHAZ (ORCPT ); Fri, 18 May 2018 03:00:25 -0400 Received: by mail-ot0-f196.google.com with SMTP id n3-v6so7954332ota.5; Fri, 18 May 2018 00:00:25 -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=4qWLyDlXkB9mVHLsNulg05kM4NRkhvt9sU7pZyWJ7rY=; b=Njxr6/r1clgBwV0Y6lHYM+oX3vgjGcCo0F6edGa3vxhBpkci3Tdq98TpGEh8mh6HLP iy1FZ4kmJTnH+knOwNtvgHe16iNaI8LLjjZ1pkaeoBJsLaCy3POt2ScDROLwOEYSwtyP C+IlsXlBAb4hdUV/9DKtDA63nDk4z6hS4z3BvFiUMpwzfkWvLyqJIt0b1v80xCfzB1kv HTE5nrlShQTJCPbYt0yEcnTfznx53cfN8ztXfpy3W7+T0MnXWOp1A4COynw/YhDKkXsv /wCOCrdP+pN0TpabaY11r594YlPRuwPMBDyX7H3c0Y4nd80FMdfh5Bh/UN8siPX/R2Vb CAnQ== 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=4qWLyDlXkB9mVHLsNulg05kM4NRkhvt9sU7pZyWJ7rY=; b=pbZsnqVrDSkcZ44shlgj458lVwKZLnnUULbSdF3jslAULi35E/Syls5+nJNHBIEivN hD/ccTEjcbOQlrHZ+ZaK1F5gV+ZahV+Lc7JPI4OLmkLcs2voDCZ9CUMkhjBVwtkWWSBR DrchHl3wwMbnwAWvf07dZAZui/yVj3EehkemDmXc3kzfQ2dtAvjGiwORjIJil/b2rvl+ pIRuyfD0VGw86QA+EzAJxkqQrhvOrTqJ++cgvifaU97XLCRcAnZ0QhUoemAJgbE2THW0 l1OwybnWTb2b//LSEPvqfGM+xuG845BWjtjsHQzP3ORZaiuX+VGq6bfnuBgR4aXxbBvv ZUug== X-Gm-Message-State: ALKqPwfEFu1cpYHZpIyi2KL4HIvd6JDBipEjeOqLKULMqAIWyKsfBMg9 GLFmj0atjBU+rm1DUNEmuPdDXSWFFhgV+cYVaMI= X-Received: by 2002:a9d:2165:: with SMTP id l34-v6mr6010671otd.250.1526626824884; Fri, 18 May 2018 00:00:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.70.211 with HTTP; Fri, 18 May 2018 00:00:24 -0700 (PDT) In-Reply-To: <20180516152131.30689-1-vkuznets@redhat.com> References: <20180516152131.30689-1-vkuznets@redhat.com> From: Wanpeng Li Date: Fri, 18 May 2018 15:00:24 +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 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 Regards, Wanpeng Li