Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp937504rwb; Wed, 28 Sep 2022 10:56:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5xLSY2uXpspIBDb8ZtLzQoea62ww5tJYYme9YPruGYbHVZKffwMoSNoumxV9cwb4maGjzS X-Received: by 2002:a63:4b5f:0:b0:43c:428d:507c with SMTP id k31-20020a634b5f000000b0043c428d507cmr25206439pgl.607.1664387804750; Wed, 28 Sep 2022 10:56:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664387804; cv=none; d=google.com; s=arc-20160816; b=oCROJC/ymLoxNeIeD0aenVh/SUTM/8kxx2i28Nih0lU4GVpjtkzkuA4+t4jzlzeYvB vmLcZ7mh5ALBWEnqY0OQEHaS9+AdTUihX2lLxzkyJKpW6rA7s6x12Z8x1e4UvsXNVw5/ QznzUgeQzwCAmT4++0vRtHPfpigZSiEoNT1ke4WqGAb+kfCkgXukPPU3bVWxyRAHle8Y EC3pk0S9SBvVwz5eDZjammiIZ7WWQCqZ7K/SzqoXwIKvh5BJsM0iimjg2Ho40mLoI5ox 8am/LEMqu5jA7BuDLr3oeJ8ec5GuVaTcqMYEiWaT7CwIxs2Kl0uqqHbwEfMjHU5BnC2b CrbQ== 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=1jdTlaHlqUGsp+WQYmTbrToN1KOLkOWoz/mZqD7wNkI=; b=Vi6Orh9kACwuDP05/J+NCauZyTfHcPuhebse4ZTvuu0JfagCbphk0nshOn847GwCbe IdoxA35X95StaVTqn8yyaaLt7WkRwXfeCFYvAzs6Lk6yKuYGcLd0slanAC32V13aBYUD AlGyDhq0b2H1Egpk/XoBb3pETGr5zmjI5Rn2qUNHJ+ng1m1Q30iHmGtachJVERHN1sFo GGC2JMMkgM9dnIGAM+k2kU2ogbmpr3fRJBgw9AEHVgSfPFGbHUXK4t9cmuGfS7jT2lTQ lzCF8yozNQt8bvYYYRq8Q0KT29W5Uf3umt13vHwR+osEuBDXTRlPu5gnBbzP0q/cu1YX yv/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SFYZdnBI; 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 s2-20020a639242000000b00439ae523fd2si5926136pgn.289.2022.09.28.10.56.33; Wed, 28 Sep 2022 10:56:44 -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=SFYZdnBI; 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 S234600AbiI1Rod (ORCPT + 99 others); Wed, 28 Sep 2022 13:44:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234536AbiI1Rob (ORCPT ); Wed, 28 Sep 2022 13:44:31 -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 4555519C37 for ; Wed, 28 Sep 2022 10:44:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1664387069; 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=1jdTlaHlqUGsp+WQYmTbrToN1KOLkOWoz/mZqD7wNkI=; b=SFYZdnBINAJBQ9kAKFfv1bs6+xL+bbnL5wJiCprWoxwrpVPsU3Y6XyrrL8gsmt4qMlvN9b /w/QNujCwLLfl1Y45bQb8zs47p2g9eErIrteAedP+fVYseX9zqZeQjQguKx9x9mcsgC3i4 JU/X9I0IPgyTLDYCozkngBgPUPDgpHc= 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-515-jTqblEF3M-ypPsQpFngd5Q-1; Wed, 28 Sep 2022 13:44:26 -0400 X-MC-Unique: jTqblEF3M-ypPsQpFngd5Q-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6831B101AA5B; Wed, 28 Sep 2022 17:44:25 +0000 (UTC) Received: from starship (unknown [10.40.193.233]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2B6791121314; Wed, 28 Sep 2022 17:44:23 +0000 (UTC) Message-ID: 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:44:22 +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.3 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=unavailable 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 it actually? I test it routinely and it it does work quite well IMHO. I don't remember that there were that much breakage lately in this area. 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