diff mbox

[v2,30/30] xen: allow setting the store pfn HVM parameter

Message ID 1474991845-27962-31-git-send-email-roger.pau@citrix.com (mailing list archive)
State New, archived
Headers show

Commit Message

Roger Pau Monné Sept. 27, 2016, 3:57 p.m. UTC
Xen already allows setting the store event channel, and this parameter is
not used by Xen at all.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
---
Cc: Jan Beulich <jbeulich@suse.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>
---
 xen/arch/x86/hvm/hvm.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Paul Durrant Oct. 3, 2016, 11:01 a.m. UTC | #1
> -----Original Message-----

> From: Xen-devel [mailto:xen-devel-bounces@lists.xen.org] On Behalf Of

> Roger Pau Monne

> Sent: 27 September 2016 16:57

> To: xen-devel@lists.xenproject.org

> Cc: Andrew Cooper <Andrew.Cooper3@citrix.com>;

> boris.ostrovsky@oracle.com; Roger Pau Monne <roger.pau@citrix.com>; Jan

> Beulich <jbeulich@suse.com>

> Subject: [Xen-devel] [PATCH v2 30/30] xen: allow setting the store pfn HVM

> parameter

> 

> Xen already allows setting the store event channel, and this parameter is not

> used by Xen at all.

> 

> Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>

> ---

> Cc: Jan Beulich <jbeulich@suse.com>

> Cc: Andrew Cooper <andrew.cooper3@citrix.com>

> ---

>  xen/arch/x86/hvm/hvm.c | 1 +

>  1 file changed, 1 insertion(+)

> 

> diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index

> bc4f7bc..5c3aa2a 100644

> --- a/xen/arch/x86/hvm/hvm.c

> +++ b/xen/arch/x86/hvm/hvm.c

> @@ -4982,6 +4982,7 @@ static int hvm_allow_set_param(struct domain *d,

>      case HVM_PARAM_STORE_EVTCHN:

>      case HVM_PARAM_CONSOLE_EVTCHN:

>      case HVM_PARAM_X87_FIP_WIDTH:

> +    case HVM_PARAM_STORE_PFN:


Why does a guest need to be able set this? It needs to to be able to reset the store evtchn because of the need to be able to handle an evtchn reset, which blows way the guests local port, but what is going move the store ring such that the guest needs to play with it?

  Paul

>          break;

>      /*

>       * The following parameters must not be set by the guest

> --

> 2.7.4 (Apple Git-66)

> 

> 

> _______________________________________________

> Xen-devel mailing list

> Xen-devel@lists.xen.org

> https://lists.xen.org/xen-devel
diff mbox

Patch

diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c
index bc4f7bc..5c3aa2a 100644
--- a/xen/arch/x86/hvm/hvm.c
+++ b/xen/arch/x86/hvm/hvm.c
@@ -4982,6 +4982,7 @@  static int hvm_allow_set_param(struct domain *d,
     case HVM_PARAM_STORE_EVTCHN:
     case HVM_PARAM_CONSOLE_EVTCHN:
     case HVM_PARAM_X87_FIP_WIDTH:
+    case HVM_PARAM_STORE_PFN:
         break;
     /*
      * The following parameters must not be set by the guest