All of lore.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: Borislav Petkov <bp@alien8.de>, "K. Y. Srinivasan" <kys@microsoft.com>
Cc: x86@kernel.org, gregkh@linuxfoundation.org,
	linux-kernel@vger.kernel.org, devel@linuxdriverproject.org,
	olaf@aepfle.de, apw@canonical.com, jasowang@redhat.com,
	tglx@linutronix.de, JBeulich@suse.com
Subject: Re: [PATCH RESEND 1/1] X86: Handle Hyper-V vmbus interrupts as special hypervisor interrupts
Date: Thu, 24 Jan 2013 06:11:32 -0600	[thread overview]
Message-ID: <04854149-91a3-4834-b2bb-de301c8241c9@email.android.com> (raw)
In-Reply-To: <20130124092821.GA13463@pd.tnic>

Sounds great in theory at least, as long as it doesn't mean pushing a bunch of #ifdefs into other code.

Borislav Petkov <bp@alien8.de> wrote:

>On Wed, Jan 23, 2013 at 05:56:09PM -0800, K. Y. Srinivasan wrote:
>> diff --git a/arch/x86/kernel/entry_64.S b/arch/x86/kernel/entry_64.S
>> index 1975122..803ca69 100644
>> --- a/arch/x86/kernel/entry_64.S
>> +++ b/arch/x86/kernel/entry_64.S
>> @@ -1446,11 +1446,16 @@ ENTRY(xen_failsafe_callback)
>>  	CFI_ENDPROC
>>  END(xen_failsafe_callback)
>>  
>> -apicinterrupt XEN_HVM_EVTCHN_CALLBACK \
>> +apicinterrupt HYPERVISOR_CALLBACK_VECTOR \
>>  	xen_hvm_callback_vector xen_evtchn_do_upcall
>>  
>>  #endif /* CONFIG_XEN */
>>  
>> +#if IS_ENABLED(CONFIG_HYPERV)
>> +apicinterrupt HYPERVISOR_CALLBACK_VECTOR \
>> +	hyperv_callback_vector hyperv_vector_handler
>> +#endif /* CONFIG_HYPERV */
>
>arch/x86/built-in.o: In function `_set_gate':
>/w/kernel/linux-2.6/arch/x86/include/asm/desc.h:328: undefined
>reference to `hyperv_callback_vector'
>make: *** [vmlinux] Error 1
>
>because, of course:
>
># CONFIG_HYPERV is not set
>
>But, I have a more serious pet-peeve with the whole hypervisors
>detection stuff: we're building arch/x86/kernel/cpu/hypervisor.c
>unconditionally and yet, we have CONFIG_PARAVIRT_GUEST to ask the user
>whether she wants to enable some options for running linux as a guest.
>
>And actually, it would be better to put all that virt-related stuff
>under a config option called HYPERVISOR or whatever, under "Processor
>type and features" which opens a menu with all virt stuff for people
>and
>distros to select.
>
>This way, init_hypervisor_platform and the rest of hypervisors stuff
>won't run needlessly on baremetal and setups who don't want that.
>
>Any non-starter reasons for not doing that?

-- 
Sent from my mobile phone. Please excuse brevity and lack of formatting.

  reply	other threads:[~2013-01-24 12:13 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-24  1:56 [PATCH RESEND 1/1] X86: Handle Hyper-V vmbus interrupts as special hypervisor interrupts K. Y. Srinivasan
2013-01-24  9:28 ` Borislav Petkov
2013-01-24 12:11   ` H. Peter Anvin [this message]
2013-01-24 17:35     ` Borislav Petkov
2013-01-24 17:36       ` H. Peter Anvin
2013-01-24 17:39       ` [PATCH 1/2] x86, Kconfig: Move PARAVIRT_DEBUG into the paravirt menu Borislav Petkov
2013-01-24 17:39         ` [PATCH 2/2] x86: Make Linux guest support optional Borislav Petkov
2013-01-25  8:21         ` [PATCH 1/2] x86, Kconfig: Move PARAVIRT_DEBUG into the paravirt menu Ingo Molnar
2013-01-25  8:51           ` Borislav Petkov
2013-01-25  9:20             ` Ingo Molnar
2013-01-25  9:29               ` Borislav Petkov
2013-01-25  9:32                 ` Ingo Molnar
2013-01-25 10:06                   ` Borislav Petkov
2013-01-25 17:59                     ` [PATCH -v2 " Borislav Petkov
2013-01-25 17:59                     ` [PATCH -v2 2/2] x86: Make Linux guest support optional Borislav Petkov
2013-01-25 18:07                       ` Dmitry Torokhov
2013-01-25 18:23                         ` Borislav Petkov
2013-01-25 18:29                           ` Dmitry Torokhov
2013-01-25 18:35                             ` Borislav Petkov
2013-01-25 18:43                               ` Borislav Petkov
2013-01-27  1:26                                 ` H. Peter Anvin
2013-01-27 10:30                                   ` Borislav Petkov
2013-01-25 18:12                       ` Dmitry Torokhov
2013-01-25 18:32                         ` Borislav Petkov
2013-01-25 18:42                           ` Dmitry Torokhov
2013-01-25 19:03                             ` Borislav Petkov
2013-01-26 23:10                               ` [PATCH -v3 1/2] x86, Kconfig: Move PARAVIRT_DEBUG into the paravirt menu Borislav Petkov
2013-01-26 23:10                               ` [PATCH -v3 2/2] x86: Make Linux guest support optional Borislav Petkov
2013-01-27 11:06                                 ` Borislav Petkov
2013-01-28 10:18                                   ` [PATCH -v3.1] " Borislav Petkov
2013-01-24 17:42   ` [PATCH RESEND 1/1] X86: Handle Hyper-V vmbus interrupts as special hypervisor interrupts KY Srinivasan
  -- strict thread matches above, loose matches on Subject: below --
2013-01-24  1:17 K. Y. Srinivasan
2013-01-24  8:48 ` Jan Beulich
2013-01-24 16:07   ` KY Srinivasan
2013-01-24 16:15     ` Jan Beulich
2013-01-24 18:48       ` KY Srinivasan
2013-01-24 18:59         ` Olaf Hering
2013-01-24 19:03           ` KY Srinivasan
2013-01-25  7:32             ` Jan Beulich
2013-01-24 19:04           ` H. Peter Anvin
2013-01-24 19:23             ` Olaf Hering
2013-01-24 19:30               ` H. Peter Anvin
2013-01-25  7:30             ` Jan Beulich
2013-01-25  7:35           ` Jan Beulich
2013-01-25 13:58             ` Olaf Hering
2013-01-24 19:10         ` H. Peter Anvin
2013-01-25  7:31           ` Jan Beulich
2013-01-18  1:55 K. Y. Srinivasan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=04854149-91a3-4834-b2bb-de301c8241c9@email.android.com \
    --to=hpa@zytor.com \
    --cc=JBeulich@suse.com \
    --cc=apw@canonical.com \
    --cc=bp@alien8.de \
    --cc=devel@linuxdriverproject.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jasowang@redhat.com \
    --cc=kys@microsoft.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=olaf@aepfle.de \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.