* [PATCH] xen: building with perfc=y was broken
@ 2015-12-14 17:45 Dario Faggioli
2015-12-14 17:50 ` Andrew Cooper
2015-12-14 17:52 ` Paul Durrant
0 siblings, 2 replies; 3+ messages in thread
From: Dario Faggioli @ 2015-12-14 17:45 UTC (permalink / raw)
To: xen-devel; +Cc: Andrew Cooper, Paul Durrant, Jan Beulich
because of b38d426ad09 ("x86/viridian: flush remote tlbs
by hypercall") which was defining mshv_call_flush, but using
mshv_flush.
Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Cc: Jan Beulich <jbeulich@suse.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Paul Durrant <Paul.Durrant@citrix.com>
---
xen/arch/x86/hvm/viridian.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xen/arch/x86/hvm/viridian.c b/xen/arch/x86/hvm/viridian.c
index df6f26d..6bd844b 100644
--- a/xen/arch/x86/hvm/viridian.c
+++ b/xen/arch/x86/hvm/viridian.c
@@ -607,7 +607,7 @@ int viridian_hypercall(struct cpu_user_regs *regs)
* See Microsoft Hypervisor Top Level Spec. sections 12.4.2
* and 12.4.3.
*/
- perfc_incr(mshv_flush);
+ perfc_incr(mshv_call_flush);
/* These hypercalls should never use the fast-call convention. */
status = HV_STATUS_INVALID_PARAMETER;
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] xen: building with perfc=y was broken
2015-12-14 17:45 [PATCH] xen: building with perfc=y was broken Dario Faggioli
@ 2015-12-14 17:50 ` Andrew Cooper
2015-12-14 17:52 ` Paul Durrant
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Cooper @ 2015-12-14 17:50 UTC (permalink / raw)
To: Dario Faggioli, xen-devel; +Cc: Paul Durrant, Jan Beulich
On 14/12/15 17:45, Dario Faggioli wrote:
> because of b38d426ad09 ("x86/viridian: flush remote tlbs
> by hypercall") which was defining mshv_call_flush, but using
> mshv_flush.
>
> Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
> Cc: Jan Beulich <jbeulich@suse.com>
> Cc: Andrew Cooper <andrew.cooper3@citrix.com>
> Cc: Paul Durrant <Paul.Durrant@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
FYI, when the Kconfig series lands, I plan to port the Linux
IS_ENABLED() infrastructure to Xen, which will allow bugs like this to
be caught by the compiler even when the option is disabled.
~Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] xen: building with perfc=y was broken
2015-12-14 17:45 [PATCH] xen: building with perfc=y was broken Dario Faggioli
2015-12-14 17:50 ` Andrew Cooper
@ 2015-12-14 17:52 ` Paul Durrant
1 sibling, 0 replies; 3+ messages in thread
From: Paul Durrant @ 2015-12-14 17:52 UTC (permalink / raw)
To: Dario Faggioli, xen-devel@lists.xenproject.org; +Cc: Andrew Cooper, Jan Beulich
> -----Original Message-----
> From: Dario Faggioli [mailto:raistlin.df@gmail.com] On Behalf Of Dario Faggioli
> Sent: 14 December 2015 17:45
> To: xen-devel@lists.xenproject.org
> Cc: Andrew Cooper; Paul Durrant; Jan Beulich
> Subject: [PATCH] xen: building with perfc=y was broken
>
> because of b38d426ad09 ("x86/viridian: flush remote tlbs
> by hypercall") which was defining mshv_call_flush, but using
> mshv_flush.
Oops. Sorry about that.
>
> Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
> Cc: Jan Beulich <jbeulich@suse.com>
> Cc: Andrew Cooper <andrew.cooper3@citrix.com>
> Cc: Paul Durrant <Paul.Durrant@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
> ---
> xen/arch/x86/hvm/viridian.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/xen/arch/x86/hvm/viridian.c b/xen/arch/x86/hvm/viridian.c
> index df6f26d..6bd844b 100644
> --- a/xen/arch/x86/hvm/viridian.c
> +++ b/xen/arch/x86/hvm/viridian.c
> @@ -607,7 +607,7 @@ int viridian_hypercall(struct cpu_user_regs *regs)
> * See Microsoft Hypervisor Top Level Spec. sections 12.4.2
> * and 12.4.3.
> */
> - perfc_incr(mshv_flush);
> + perfc_incr(mshv_call_flush);
>
> /* These hypercalls should never use the fast-call convention. */
> status = HV_STATUS_INVALID_PARAMETER;
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-12-14 17:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-14 17:45 [PATCH] xen: building with perfc=y was broken Dario Faggioli
2015-12-14 17:50 ` Andrew Cooper
2015-12-14 17:52 ` Paul Durrant
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.