Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932807AbbGJOkW (ORCPT ); Fri, 10 Jul 2015 10:40:22 -0400 Received: from mail-lb0-f171.google.com ([209.85.217.171]:32931 "EHLO mail-lb0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932714AbbGJOkO (ORCPT ); Fri, 10 Jul 2015 10:40:14 -0400 MIME-Version: 1.0 In-Reply-To: <559FA988.9030205@redhat.com> References: <23d4709cee2fe92c32d41b99c7a3c1823725925a.1436312944.git.luto@kernel.org> <559C8BFE.6050604@linux.intel.com> <20150709055225.GA29556@gmail.com> <20150709055917.GA30478@gmail.com> <559FA988.9030205@redhat.com> From: Andy Lutomirski Date: Fri, 10 Jul 2015 07:39:53 -0700 Message-ID: Subject: Re: [PATCH] x86/kconfig/32: Mark CONFIG_VM86 as BROKEN To: Paolo Bonzini Cc: Ingo Molnar , Brian Gerst , Linus Torvalds , Arjan van de Ven , Andy Lutomirski , "the arch/x86 maintainers" , Linux Kernel Mailing List , Oleg Nesterov , Kees Cook , Peter Zijlstra , Borislav Petkov Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1051 Lines: 26 On Fri, Jul 10, 2015 at 4:16 AM, Paolo Bonzini wrote: > > > On 09/07/2015 20:33, Andy Lutomirski wrote: >> On Wed, Jul 8, 2015 at 10:59 PM, Ingo Molnar wrote: > >> The big downside of that, or of writing a more ad-hoc emulator, is >> understanding what the semantics of all the weird vm86plus stuff is >> supposed to be in the first place. > > Do you mean VIF/VIP and the other vm86 mode extensions? Or is vm86plus > something in Linux? Something in Linux written for DOSEMU's benefit. I don't really understand what it encompasses. Oddly, Linux doesn't use the virtual mode extensions. Instead, it emulates them (but probably not very well). So STI manipulates a fake VIF flag and checks a fake VIP flag. There's also a huge hack involving 0xA0000. --Andy -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/