From: Paolo Bonzini Subject: Re: [PATCH RFC 02/39] KVM: x86/xen: intercept xen hypercalls if enabled Date: Fri, 22 Feb 2019 13:50:20 +0100 Message-ID: <594b0e2a-9377-1b67-be93-924cae2db7f4@redhat.com> References: <20190220201609.28290-1-joao.m.martins@oracle.com> <20190220201609.28290-3-joao.m.martins@oracle.com> <20190221182910.GC7224@linux.intel.com> <1f6a2410-f9da-15ed-327c-7d8c1255368b@oracle.com> <20190222003049.GF7224@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Ankur Arora , Boris Ostrovsky , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org To: Sean Christopherson , Joao Martins Return-path: In-Reply-To: <20190222003049.GF7224@linux.intel.com> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 22/02/19 01:30, Sean Christopherson wrote: > On Thu, Feb 21, 2019 at 08:56:06PM +0000, Joao Martins wrote: >> The Xen addition follows the same structure as Hyper-V in kvm (what you suggest >> here is probably applicable for both). i.e. there's some Xen specific routines >> for vm/vcpu init/teardown, and timer handling. We would have to place some of >> those functions into a struct that gets registered at modinit. > > Huh. I never really hooked at the Hyper-V code, for some reason I always > assumed it was only related to running KVM on Hyper-V. I agree that this > extra hurdle only makes sense if it's also applied to Hyper-V. The difference is that Hyper-V support is more or less mandatory to run recent Windows guests. Having a config symbol would be enough for me. Paolo