All of lore.kernel.org
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: Alexander Graf <agraf@suse.de>
Cc: Tabi Timur-B04825 <B04825@freescale.com>,
	Stephen Rothwell <sfr@canb.auug.org.au>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	David Howells <dhowells@redhat.com>,
	"linux-next@vger.kernel.org" <linux-next@vger.kernel.org>,
	Paul Mackerras <paulus@samba.org>,
	"linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>
Subject: Re: linux-next: manual merge of the kvm-ppc tree with the powerpc-merge tree
Date: Thu, 11 Oct 2012 10:50:03 -0500	[thread overview]
Message-ID: <1349970603.6903.2@snotra> (raw)
In-Reply-To: <6201AAAD-F575-4D2C-9A97-3EB41DA3491C@suse.de> (from agraf@suse.de on Thu Oct 11 08:04:58 2012)

On 10/11/2012 08:04:58 AM, Alexander Graf wrote:
> 
> On 11.10.2012, at 05:32, Tabi Timur-B04825 wrote:
> 
> > On Wed, Oct 10, 2012 at 9:47 PM, Stephen Rothwell  
> <sfr@canb.auug.org.au> wrote:
> >
> >> Commit 549d62d889b4 ("KVM: PPC: use definitions in epapr header
> >> for hcalls") from the kvm-ppc tree added an include of  
> asm/epapr_hcall.h
> >> to the user visible part of asm/kvm_para.h so asm/epapr_hcall.h  
> became a
> >> user visible header file.
> >
> > Any real user-space code that tries to call any of the functions in
> > epapr_hcall.h will cause an exception.

Actually it'll cause a linker error, as of the "Don't use hardcoded  
opcode for ePAPR hcall invocation" patch.

> > Claiming that kernel header files that KVM needs are suddenly
> > user-space header files doesn't make much sense to me, but I guess
> > it's not my decision.
> 
> This is about kvm_host.h, which is the part that is exported to user  
> space. It usually contains constants and structs that are required  
> for the API.

s/kvm_host/kvm_para/

I'm not sure anything in kvm_para.h or epapr_hcalls.h would be of use  
to userspace, but it would be of use to the guest OS, so it's still not  
kernel-internal.

The variable externs should be #ifdef __KERNEL__ as David points out.   
The asm stuff could still be useful in a guest OS if the guest provides  
epapr_hypercall_start.

-Scott

WARNING: multiple messages have this Message-ID (diff)
From: Scott Wood <scottwood@freescale.com>
To: Alexander Graf <agraf@suse.de>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>,
	Tabi Timur-B04825 <B04825@freescale.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	David Howells <dhowells@redhat.com>,
	"linux-next@vger.kernel.org" <linux-next@vger.kernel.org>,
	Paul Mackerras <paulus@samba.org>,
	"linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>
Subject: Re: linux-next: manual merge of the kvm-ppc tree with the powerpc-merge tree
Date: Thu, 11 Oct 2012 10:50:03 -0500	[thread overview]
Message-ID: <1349970603.6903.2@snotra> (raw)
In-Reply-To: <6201AAAD-F575-4D2C-9A97-3EB41DA3491C@suse.de> (from agraf@suse.de on Thu Oct 11 08:04:58 2012)

On 10/11/2012 08:04:58 AM, Alexander Graf wrote:
>=20
> On 11.10.2012, at 05:32, Tabi Timur-B04825 wrote:
>=20
> > On Wed, Oct 10, 2012 at 9:47 PM, Stephen Rothwell =20
> <sfr@canb.auug.org.au> wrote:
> >
> >> Commit 549d62d889b4 ("KVM: PPC: use definitions in epapr header
> >> for hcalls") from the kvm-ppc tree added an include of =20
> asm/epapr_hcall.h
> >> to the user visible part of asm/kvm_para.h so asm/epapr_hcall.h =20
> became a
> >> user visible header file.
> >
> > Any real user-space code that tries to call any of the functions in
> > epapr_hcall.h will cause an exception.

Actually it'll cause a linker error, as of the "Don't use hardcoded =20
opcode for ePAPR hcall invocation" patch.

> > Claiming that kernel header files that KVM needs are suddenly
> > user-space header files doesn't make much sense to me, but I guess
> > it's not my decision.
>=20
> This is about kvm_host.h, which is the part that is exported to user =20
> space. It usually contains constants and structs that are required =20
> for the API.

s/kvm_host/kvm_para/

I'm not sure anything in kvm_para.h or epapr_hcalls.h would be of use =20
to userspace, but it would be of use to the guest OS, so it's still not =20
kernel-internal.

The variable externs should be #ifdef __KERNEL__ as David points out.  =20
The asm stuff could still be useful in a guest OS if the guest provides =20
epapr_hypercall_start.

-Scott=

  reply	other threads:[~2012-10-11 15:50 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-11  1:18 linux-next: manual merge of the kvm-ppc tree with the powerpc-merge tree Stephen Rothwell
2012-10-11  1:18 ` Stephen Rothwell
2012-10-11  1:18 ` Stephen Rothwell
2012-10-11  1:47 ` Tabi Timur-B04825
2012-10-11  1:47   ` Tabi Timur-B04825
2012-10-11  2:47   ` Stephen Rothwell
2012-10-11  2:47     ` Stephen Rothwell
2012-10-11  3:32     ` Tabi Timur-B04825
2012-10-11  3:32       ` Tabi Timur-B04825
2012-10-11  3:32       ` Tabi Timur-B04825
2012-10-11 13:04       ` Alexander Graf
2012-10-11 13:04         ` Alexander Graf
2012-10-11 15:50         ` Scott Wood [this message]
2012-10-11 15:50           ` Scott Wood
2012-10-11 15:56           ` Alexander Graf
2012-10-11 15:56             ` Alexander Graf
2012-10-11 16:33             ` Scott Wood
2012-10-11 16:33               ` Scott Wood
2012-10-11 15:55         ` Timur Tabi
2012-10-11 15:55           ` Timur Tabi
2012-10-11 16:37           ` Scott Wood
2012-10-11 16:37             ` Scott Wood
2012-10-11 17:24             ` Timur Tabi
2012-10-11 17:24               ` Timur Tabi
2012-10-11 17:28               ` Scott Wood
2012-10-11 17:28                 ` Scott Wood
2012-10-11 17:30                 ` Timur Tabi
2012-10-11 17:30                   ` Timur Tabi
2012-10-11  9:28   ` David Howells
2012-10-11  9:28     ` David Howells
  -- strict thread matches above, loose matches on Subject: below --
2012-10-11  1:05 Stephen Rothwell
2012-10-11  1:05 ` Stephen Rothwell
2012-10-11  1:05 ` Stephen Rothwell
2012-10-11  9:27 ` David Howells
2012-10-11  9:27   ` David Howells
2012-10-11 13:08   ` Alexander Graf
2012-10-11 13:08     ` Alexander Graf
2012-10-11 16:05     ` David Howells
2012-10-11 16:05       ` David Howells

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=1349970603.6903.2@snotra \
    --to=scottwood@freescale.com \
    --cc=B04825@freescale.com \
    --cc=agraf@suse.de \
    --cc=dhowells@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=paulus@samba.org \
    --cc=sfr@canb.auug.org.au \
    /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.