mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Zhao, Yakui" <yakui.zhao@intel.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"x86@kernel.org" <x86@kernel.org>,
	"Chen, Jason CJ" <jason.cj.chen@intel.com>
Subject: Re: [RFC PATCH 2/3] arch/x86/acrn: Use HYPERVISOR_CALLBACK_VECTOR for Acrn upcall vector
Date: Tue, 26 Mar 2019 08:58:58 +0800	[thread overview]
Message-ID: <e2951a1d-83e4-f635-9a2f-b8dbdeea50ec@intel.com> (raw)
In-Reply-To: <alpine.DEB.2.21.1903250925130.1798@nanos.tec.linutronix.de>



On 2019年03月25日 16:27, Thomas Gleixner wrote:
> On Mon, 25 Mar 2019, Zhao, Yakui wrote:
>>>> +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_X86_ACRNHYPER_H
>>>> +#define _ASM_X86_ACRNHYPER_H
>>>> +
>>>> +#include <linux/types.h>
>>>> +#include <asm/io.h>
>>>> +
>>>> +#ifdef CONFIG_ACRN
>>>> +/* ACRN Hypervisor callback */
>>>> +void acrn_hv_callback_vector(void);
>>>
>>> What declares acrn_hv_vector_handler() ?
>>
>> Acrn_hv_callback_vector is defined in arch/x86/entry/entry_64.S, which will be used as
>> the parameter of alloc_intr_gate
>>
>> Acrn_hv_vector_handler is the real ISR handler, which is defined in acrn.c.
> 
> I know how that works and I was not asking where stuff is defined. I was
> asking where it is declared. Global functions need a declaration in a
> header file.

Sure. It will be declared in next version.

> 
>>>> +void acrn_remove_intr_irq(void)
>>>> +{
>>>> +	acrn_intr_handler = NULL;
>>>> +}
>>>> +EXPORT_SYMBOL(acrn_remove_intr_irq);
>>>
>>> Where is the code which uses these exports? We are not adding exports just
>>> because or for consumption by out of tree modules.
>>
>> Understand it.
>> Is it reasonable that the above two functions are added in the driver patch set?
> 
> Yes, because then we see the context.

OK. They will be removed.  And it will be included in driver patch set.

> 
> Thanks,
> 
> 	tglx
> 

  reply	other threads:[~2019-03-26  1:05 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-07  2:04 [RFC PATCH 0/3] arch/x86: Add the support of ACRN hypervisor under arch/x86 Zhao Yakui
2019-03-07  2:04 ` [RFC PATCH 1/3] arch/x86: add ACRN hypervisor guest Zhao Yakui
2019-03-22 15:20   ` Thomas Gleixner
2019-03-25  3:24     ` Zhao, Yakui
2019-03-23 15:17   ` Sean Christopherson
2019-03-07  2:04 ` [RFC PATCH 2/3] arch/x86/acrn: Use HYPERVISOR_CALLBACK_VECTOR for Acrn upcall vector Zhao Yakui
2019-03-22 15:44   ` Thomas Gleixner
2019-03-22 19:53     ` Borislav Petkov
2019-03-25  3:57     ` Zhao, Yakui
2019-03-25  8:27       ` Thomas Gleixner
2019-03-26  0:58         ` Zhao, Yakui [this message]
2019-03-07  2:04 ` [RFC PATCH 3/3] arch/x86/acrn: add hypercall for acrn_hypervisor Zhao Yakui
2019-03-22 16:01   ` Thomas Gleixner
2019-03-25  6:12     ` Zhao, Yakui
2019-03-25  8:30       ` Thomas Gleixner
2019-03-26  0:59         ` Zhao, Yakui

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=e2951a1d-83e4-f635-9a2f-b8dbdeea50ec@intel.com \
    --to=yakui.zhao@intel.com \
    --cc=jason.cj.chen@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome