From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nadav Amit Subject: Re: x86: Question regarding the reset value of LINT0 Date: Sun, 12 Apr 2015 21:29:48 +0300 Message-ID: References: <2B474EEE-85C9-47C3-89FF-C56754CFEC0D@gmail.com> <55255AF2.2070706@siemens.com> <06513D06-1629-4AC0-9014-C6D13C29A1FC@gmail.com> <55256004.8030403@siemens.com> <55256A89.3030100@siemens.com> <06DCB70D-52E7-457B-BEEF-051F20136D7A@gmail.com> <5526C4B9.6030101@gmail.com> <8E93BDA9-CCB5-4D7C-9FF0-0CDBCDB78051@gmail.com> <552793F1.7090005@redhat.com> Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Bandan Das , Avi Kivity , Jan Kiszka , kvm list To: Paolo Bonzini Return-path: Received: from mail-wg0-f51.google.com ([74.125.82.51]:35797 "EHLO mail-wg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751704AbbDLS3w convert rfc822-to-8bit (ORCPT ); Sun, 12 Apr 2015 14:29:52 -0400 Received: by wgyo15 with SMTP id o15so60675552wgy.2 for ; Sun, 12 Apr 2015 11:29:51 -0700 (PDT) In-Reply-To: <552793F1.7090005@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Paolo Bonzini wrote: >=20 >=20 > On 09/04/2015 21:17, Bandan Das wrote: >>> Excluding (1) all of the other issues are related to the VM BIOS. P= erhaps >>> KVM should somehow realize which VM BIOS runs? (yes, it sounds just= as bad.) >>=20 >> How about renaming the toggle Avi mentioned above to something more = generic >> (KVM_DISABLE_LEGACY_QUIRKS ?) and grouping all the issues together ?= Modern userspace >> will always enable it and get the new correct behavior. When more ca= ses are discovered, >> KVM can just add them to the list. >=20 > It can be a VM capability (KVM_FIRMWARE_QUIRKS?) that is enabled via > KVM_ENABLE_CAP. >=20 > The first argument in struct kvm_enable_cap can be used to add more > quirks in the future. For now, an argument of zero could be used to: >=20 > 1) set up LINT0 correctly >=20 > 2) set up CD and NW correctly in svm_set_cr0 >=20 > AFAIK the MTRR issue in SeaBIOS was not fixed. For that, QEMU could > write to MSR_MTRRcap with KVM_SET_MSR. >=20 > Setting the "accessed" bit in vmx_set_segment is IMHO harmless, and w= e > might as well do it even if !enable_unrestricted_guest. Ok. I=E2=80=99ll send an updated version (as well as updated version of= the init/reset issues) in the next few days. Nadav