Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp938526rwb; Wed, 28 Sep 2022 10:57:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7PJDWQ0vFSJ4yuAjXSfpnZPPEkKo6xauqVxh4JfWABcE68F5OCoiLk2IJQqyC2qnudtcGc X-Received: by 2002:a05:6a00:1309:b0:535:d421:1347 with SMTP id j9-20020a056a00130900b00535d4211347mr36352072pfu.5.1664387861095; Wed, 28 Sep 2022 10:57:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664387861; cv=none; d=google.com; s=arc-20160816; b=0LUYToipTSedIQI+C2gDpM8dAr3Vj7pCd9rlXfrVFF/osn8aIfl7LJtFdmtZh8BJaW BeP32yd36iR2a8UmnXhAgGsX7DNiXvPy21faa65OMS0hf6x5Hwyb8zpT3U6fX4vLagq1 XPGOsL2wvunDX3H135WkQTdLVuyLqk6gPynsVmSxGrPbBuu2iSEOG5H3K3CKo1QE/+6m WywSw1y0BEygyN+3AlFANLCUxruQLI24vZqDHLxdQvKU0xg+3NwgwXT8f4btjMsNyAzk XTi0l/UTbWUt+yo3slHnxlk36S6bx3ju4ix+Va+XWyydyOUvE7v/Nc8nQ8ICYe7ndFBZ Q/Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=HJk3cj+Vz9Qlpa9Mgs7m7Di+QsxRl2FWGCa72c6Fy3g=; b=JegwBRNQJuEyA7gywy9QnlhS21HV9BiUbggdTBTadIiFbSGhJgr/a90gOUgxkKXv/P +j58me0nfxEhvS0ja1JXnVNgsXXJdHAYzthMGKxQllBYmYoPPOTxslq2S4oWiBqP0wap tn2CSRg4TV8Hdyg66yPDgN7pePWILDbaGRPYhbxk7CKTm9GcioQUZ8xwkOYNcHt20EK3 ZWQUArUpRYNfSxGFpIY27J8g1PyqinE1CGoNpIQpAt+F2FRwz++lJ1IIoRg2KnkzeVoA 9YVAkS7aAmYCpt/6T7eyboULnkhQDWUnqBPeZsYSjiBEvh4pV+WRkCbIbQDgl1T0QGo/ vWmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Z82yA8Hp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n9-20020a170902d2c900b00176c8e521f3si6731746plc.220.2022.09.28.10.57.29; Wed, 28 Sep 2022 10:57:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Z82yA8Hp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234278AbiI1Rnu (ORCPT + 99 others); Wed, 28 Sep 2022 13:43:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234536AbiI1Rnr (ORCPT ); Wed, 28 Sep 2022 13:43:47 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94DD6EC57D for ; Wed, 28 Sep 2022 10:43:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1664387023; 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=HJk3cj+Vz9Qlpa9Mgs7m7Di+QsxRl2FWGCa72c6Fy3g=; b=Z82yA8Hp6wgCps1VDVSwjIyoTfJsYD4mrIWhYScVcrRlkBVdiyxaDxTCXs5V+Ch36/xXJV r5B0pCi6gcRM60VinqrTwO9MMepBfQ0gFOaSC308ExiZ69xxKCrnRWfymGG+kcADlm9fas 7mfUivIx9eeNUIePPDP4VsWM4ohixYk= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-533-8WtOp5g4MdavR3DD_uGPFA-1; Wed, 28 Sep 2022 13:43:42 -0400 X-MC-Unique: 8WtOp5g4MdavR3DD_uGPFA-1 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 mimecast-mx02.redhat.com (Postfix) with ESMTPS id 21B26101CC62; Wed, 28 Sep 2022 17:43:42 +0000 (UTC) Received: from starship (unknown [10.40.193.233]) by smtp.corp.redhat.com (Postfix) with ESMTP id D8DF12027061; Wed, 28 Sep 2022 17:43:40 +0000 (UTC) Message-ID: <1d04809ca55fc667f60adf31dc6f1adff089d2c0.camel@redhat.com> Subject: Re: [PATCH] KVM: x86: disable on 32-bit unless CONFIG_BROKEN From: Maxim Levitsky To: Sean Christopherson , Paolo Bonzini Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Date: Wed, 28 Sep 2022 20:43:39 +0300 In-Reply-To: References: <20220926165112.603078-1-pbonzini@redhat.com> <15291c3f-d55c-a206-9261-253a1a33dce1@redhat.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2022-09-28 at 16:12 +0000, Sean Christopherson wrote: > On Wed, Sep 28, 2022, Paolo Bonzini wrote: > > On 9/28/22 09:10, Maxim Levitsky wrote: > > > I also think that outside KVM developers nobody should be using KVM on 32 bit host. > > > > > > However for_developement_ I think that 32 bit KVM support is very useful, as it > > > allows to smoke test the support for 32 bit nested hypervisors, which I do once in a while, > > > and can even probably be useful to some users (e.g running some legacy stuff in a VM, > > > which includes a hypervisor, especially to run really legacy OSes / custom bare metal software, > > > using an old hypervisor) - or in other words, 32 bit nested KVM is mostly useless, but > > > other 32 bit nested hypervisors can be useful. > > > > > > Yes, I can always use an older 32 bit kernel in a guest with KVM support, but as long > > > as current kernel works, it is useful to use the same kernel on host and guest. > > > > Yeah, I would use older 32 bit kernels just like I use RHEL4 to test PIT > > reinjection. :) But really the ultimate solution to this would be to > > improve kvm-unit-tests so that we can compile vmx.c and svm.c for 32-bit. > > Agreed. I too use 32-bit KVM to validate KVM's handling of 32-bit L1 hypervisors, > but the maintenance cost is painfully high. > But is is actually? I test it routinely and it it does work quite well IMHO. As far as my opinion goes I do volunteer to test this code more often, and I do not want to see the 32 bit KVM support be removed *yet*. Best regards, Maxim Levitsky