From mboxrd@z Thu Jan 1 00:00:00 1970 References: <20170306220348.79702-1-thgarnie@google.com> <20170306220348.79702-2-thgarnie@google.com> <17ffcc5b-1c9a-51b6-272a-5eaecf1bc0c4@citrix.com> <5cf31779-45c5-d37f-86bc-d5afb3fb7ab6@oracle.com> From: Boris Ostrovsky Message-ID: <51c23e92-d1f0-427f-e069-c92fc4ed6226@oracle.com> Date: Thu, 9 Mar 2017 17:13:40 -0500 MIME-Version: 1.0 In-Reply-To: <5cf31779-45c5-d37f-86bc-d5afb3fb7ab6@oracle.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: [kernel-hardening] Re: [Xen-devel] [PATCH v5 2/3] x86: Remap GDT tables in the Fixmap section To: Thomas Garnier , Andy Lutomirski Cc: Andrew Cooper , Michal Hocko , Stanislaw Gruszka , "linux-doc@vger.kernel.org" , kvm list , Fenghua Yu , Matt Fleming , Frederic Weisbecker , X86 ML , Chris Wilson , "linux-mm@kvack.org" , Paul Gortmaker , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , "linux-efi@vger.kernel.org" , Alexander Potapenko , Pavel Machek , "H . Peter Anvin" , "kernel-hardening@lists.openwall.com" , Jiri Olsa , zijun_hu , Dave Hansen , Andi Kleen , "xen-devel@lists.xenproject.org" , Jonathan Corbet , Michael Ellerman , Joerg Roedel , Prarit Bhargava , kasan-dev , Vitaly Kuznetsov , Christian Borntraeger , Ingo Molnar , Andrey Ryabinin , Borislav Petkov , Len Brown , Rusty Russell , Kees Cook , Arnd Bergmann , He Chen , Brian Gerst , Jiri Kosina , lguest@lists.ozlabs.org, Andy Lutomirski , Josh Poimboeuf , Thomas Gleixner , Andrew Morton , Dmitry Vyukov , Juergen Gross , Peter Zijlstra , Lorenzo Stoakes , Ard Biesheuvel , "linux-pm@vger.kernel.org" , "Rafael J . Wysocki" , "linux-kernel@vger.kernel.org" , "Luis R . Rodriguez" , Paolo Bonzini , Joonsoo Kim , Tim Chen List-ID: >> I don't have any experience with Xen so it would be great if virtme can test it. > > I am pretty sure I tested this series at some point but I'll test it again. > Fails 32-bit build: /home/build/linux-boris/arch/x86/kvm/vmx.c: In function ‘segment_base’: /home/build/linux-boris/arch/x86/kvm/vmx.c:2054: error: ‘host_gdt’ undeclared (first use in this function) /home/build/linux-boris/arch/x86/kvm/vmx.c:2054: error: (Each undeclared identifier is reported only once /home/build/linux-boris/arch/x86/kvm/vmx.c:2054: error: for each function it appears in.) /home/build/linux-boris/arch/x86/kvm/vmx.c:2054: error: type defaults to ‘int’ in declaration of ‘type name’ /home/build/linux-boris/arch/x86/kvm/vmx.c:2054: error: type defaults to ‘int’ in declaration of ‘type name’ /home/build/linux-boris/arch/x86/kvm/vmx.c:2054: warning: initialization from incompatible pointer type /home/build/linux-boris/arch/x86/kvm/vmx.c:2054: warning: unused variable ‘gdt’ -boris