Re: [PATCH V4 3/7] kvm tools: Add SPAPR PPC64 hcall & rtascall structure

2012-01-31 Thread Matt Evans
On 31 Jan 2012, at 19:11, Pekka Enberg wrote: > On Tue, Jan 31, 2012 at 8:34 AM, Matt Evans wrote: >> +#define DEBUG_SPAPR_HCALLS > > I suppose this shouldn't be defined by default? Well, I had a bit of a debate about it. I left it on as it is actually interesting whilst experimenting with d

Re: [PATCH V4 3/7] kvm tools: Add SPAPR PPC64 hcall & rtascall structure

2012-01-31 Thread Pekka Enberg
On Tue, Jan 31, 2012 at 8:34 AM, Matt Evans wrote: > +#define DEBUG_SPAPR_HCALLS I suppose this shouldn't be defined by default? > +#ifdef DEBUG_SPAPR_HCALLS > +#define hcall_dprintf(fmt, ...) \ > +    do { fprintf(stderr, fmt, ## __VA_ARGS__); } while (0) > +#else > +#define hcall_dprintf(fmt,

[PATCH V4 3/7] kvm tools: Add SPAPR PPC64 hcall & rtascall structure

2012-01-30 Thread Matt Evans
This patch adds the basic structure for HV calls, their registration and some of the simpler calls. A similar layout for RTAS calls is also added, again with some of the simpler RTAS calls used by the guest. The SPAPR RTAS stub is generated inline. Also, nodes for RTAS are added to the device tr