Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp881900pxf; Wed, 7 Apr 2021 14:03:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwL0FLCXUBl49GTilN9GuEZBj5fbhsA+Pb+x+LtbVOM3ueMVpb6QkN0EjQAv3l5pnhHDjkl X-Received: by 2002:a05:6638:2044:: with SMTP id t4mr5667780jaj.12.1617829420975; Wed, 07 Apr 2021 14:03:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617829420; cv=none; d=google.com; s=arc-20160816; b=O4NXVTlPVNJduTue9Y7g2YmjIBRxHc2F0Fi7Xh1Qv11nTSdjBA7Z8NkMYeDFQPAy7S m5+R6ZcyKkYDeFWeoRt0RJhIqohCFUzgQl7bkVBNg6sJhrC59xG7TusSCWsnh5YOdmDT /ZU4DZ+S1awinb4K6QQav6Udv558FSvfgFwILCsH6Ao55cwa95GuIE6dBltuHiOJLdL+ a4VNp8ZUwDtSakFkSSztTsU5ah3v6pLuDr7NCSOYxB0Oq7qX8ExADQrRbkk7LnWzx5pe JsL+MifNQr8Cwrz29hrf7V5qbETTR3+2rVXS6ygH4qUZc3KT2BPJZvKJqYvsHp5i76aC XyLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=9m75QxnXJIDFvd04jFuU+jAebNsaXnrFEZtwPGGiQ6I=; b=HD5mgMk/92oPofu244S/tETw4Fm/cAdnTZ392/8kSObIPUNNTkf8yEfEx3K4xYk7qb qcWVs+R/7UA+zBEJgG6xnwsJrEyU6ewx3Pv0cDV+1sAtrBM9ffxrcSfrfZzf01gZb9gE 5LDHYHi44Pok30hBUGruNSyuAOGKOmE2ms2ce/RovU8GqPfJMicbmPX6hgT9BSt/97jH 0AJZLQMTRsJcGs480UkscXz1SXpvZke4lrM5v5eLCrBWSRu3SC6YKRus+hmSG4FUCCr2 5cg0jISv18E+HjWV+kKsyfzomJ44MJ3DhEfkc/1Ga9DRiQ5SLe6OHfq8eZXAJSxSYroq DGLg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g6si22526356ild.141.2021.04.07.14.03.28; Wed, 07 Apr 2021 14:03:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352831AbhDGOTh (ORCPT + 99 others); Wed, 7 Apr 2021 10:19:37 -0400 Received: from mail-wm1-f45.google.com ([209.85.128.45]:36493 "EHLO mail-wm1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352824AbhDGOTg (ORCPT ); Wed, 7 Apr 2021 10:19:36 -0400 Received: by mail-wm1-f45.google.com with SMTP id j20-20020a05600c1914b029010f31e15a7fso1248065wmq.1; Wed, 07 Apr 2021 07:19:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=9m75QxnXJIDFvd04jFuU+jAebNsaXnrFEZtwPGGiQ6I=; b=hy/UShkRuKlEBnY4DnlQ5swvDeszqHFjvepcCLZAmOihTZkegZI05vJTSra9Cl7LXt ALunM83N4x4J9NerkawCXuvhAA+dZj0Pje+RurRmY8Q6ljgLy+W5GAdkBcdADC6zcmdC YeFc/pfJCGOLckZ/qnhoCvWYV/+O+DPwTlraBBosr9xdYFyATWNCYxKkRcrrUaTASmmH ZkG05209AgIPH9d2iAAgtIAcbXEu4teuD/4rliA7np815eCbby1jgQ2YoRXwNB1DEkaW amHcv4mdwA8xtO94Z2sWiWmTMhxVPHggRXzKU3CaY3de6AQSw/wf9jgCfLdADlXbUA8h vGdg== X-Gm-Message-State: AOAM533mX35qyfE/b266WwubGqknzdnTD5v12466rAvSpICmPGGAo7zc jYdjkTWCzyI73mEVY8ibpVU= X-Received: by 2002:a7b:c186:: with SMTP id y6mr3420630wmi.84.1617805164174; Wed, 07 Apr 2021 07:19:24 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id w10sm11862981wrv.95.2021.04.07.07.19.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Apr 2021 07:19:23 -0700 (PDT) Date: Wed, 7 Apr 2021 14:19:22 +0000 From: Wei Liu To: Vitaly Kuznetsov Cc: Wei Liu , Nuno Das Neves , linux-hyperv@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, mikelley@microsoft.com, viremana@linux.microsoft.com, sunilmut@microsoft.com, ligrassi@microsoft.com, kys@microsoft.com Subject: Re: [RFC PATCH 04/18] virt/mshv: request version ioctl Message-ID: <20210407141922.ksxdngftdaruhnki@liuwe-devbox-debian-v2> References: <1605918637-12192-1-git-send-email-nunodasneves@linux.microsoft.com> <1605918637-12192-5-git-send-email-nunodasneves@linux.microsoft.com> <87y2fxmlmb.fsf@vitty.brq.redhat.com> <194e0dad-495e-ae94-3f51-d2c95da52139@linux.microsoft.com> <87eeguc61d.fsf@vitty.brq.redhat.com> <87eefmczo2.fsf@vitty.brq.redhat.com> <20210407134302.ng6n4el2km7sujfp@liuwe-devbox-debian-v2> <875z0ychv3.fsf@vitty.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <875z0ychv3.fsf@vitty.brq.redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 07, 2021 at 04:02:56PM +0200, Vitaly Kuznetsov wrote: > Wei Liu writes: > > > On Wed, Apr 07, 2021 at 09:38:21AM +0200, Vitaly Kuznetsov wrote: > > > >> One more though: it is probably a good idea to introduce selftests for > >> /dev/mshv (similar to KVM's selftests in > >> /tools/testing/selftests/kvm). Selftests don't really need a stable ABI > >> as they live in the same linux.git and can be updated in the same patch > >> series which changes /dev/mshv behavior. Selftests are very useful for > >> checking there are no regressions, especially in the situation when > >> there's no publicly available userspace for /dev/mshv. > > > > I think this can wait until we merge the first implementation in tree. > > There are still a lot of moving parts. Our (currently limited) internal > > test cases need more cleaning up before they are ready. I certainly > > don't want to distract Nuno from getting the foundation right. > > > > I'm absolutely fine with this approach, selftests are a nice add-on, not > a requirement for the initial implementation. Also, to make them more > useful to mere mortals, a doc on how to run Linux as root Hyper-V > partition would come handy) Making this system easier for others to use and consume is on our radar. Currently you need Windows bootloader and a not-yet-released loader to load the hypervisor. We're making progress in bringing in GRUB. Needless to say there are technical and non-technical challenges for this work, so don't expect it to happen very soon. :-) Wei. > > -- > Vitaly >