All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keir Fraser <keir.xen@gmail.com>
To: Ian Campbell <Ian.Campbell@citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Keir Fraser <keir@xen.org>, Jan Beulich <JBeulich@suse.com>
Subject: Re: [PATCH 1/2] xen: move VCPUOP_register_runstate_memory_area to common code
Date: Thu, 02 May 2013 09:27:07 +0100	[thread overview]
Message-ID: <CDA7E1EB.23993%keir.xen@gmail.com> (raw)
In-Reply-To: <1367481917.21869.14.camel@zakaz.uk.xensource.com>

On 02/05/2013 09:05, "Ian Campbell" <Ian.Campbell@citrix.com> wrote:

> On Wed, 2013-05-01 at 20:32 +0100, Stefano Stabellini wrote:
>> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
> 
> Needs x86 and/or core acks, but lacks suitable CCs. Added.

Acked-by: Keir Fraser <keir@xen.org>

>> ---
>>  xen/arch/x86/domain.c |   28 ----------------------------
>>  xen/common/domain.c   |   28 ++++++++++++++++++++++++++++
>>  2 files changed, 28 insertions(+), 28 deletions(-)
>> 
>> diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c
>> index d1b6c64..87dcb73 100644
>> --- a/xen/arch/x86/domain.c
>> +++ b/xen/arch/x86/domain.c
>> @@ -960,34 +960,6 @@ arch_do_vcpu_op(
>>  
>>      switch ( cmd )
>>      {
>> -    case VCPUOP_register_runstate_memory_area:
>> -    {
>> -        struct vcpu_register_runstate_memory_area area;
>> -        struct vcpu_runstate_info runstate;
>> -
>> -        rc = -EFAULT;
>> -        if ( copy_from_guest(&area, arg, 1) )
>> -            break;
>> -
>> -        if ( !guest_handle_okay(area.addr.h, 1) )
>> -            break;
>> -
>> -        rc = 0;
>> -        runstate_guest(v) = area.addr.h;
>> -
>> -        if ( v == current )
>> -        {
>> -            __copy_to_guest(runstate_guest(v), &v->runstate, 1);
>> -        }
>> -        else
>> -        {
>> -            vcpu_runstate_get(v, &runstate);
>> -            __copy_to_guest(runstate_guest(v), &runstate, 1);
>> -        }
>> -
>> -        break;
>> -    }
>> -
>>      /*
>>       * XXX Disable for 4.0.0: __update_vcpu_system_time() writes to the
>> given
>>       * virtual address even when running in another domain's address space.
>> diff --git a/xen/common/domain.c b/xen/common/domain.c
>> index d21909f..0752dd2 100644
>> --- a/xen/common/domain.c
>> +++ b/xen/common/domain.c
>> @@ -1126,6 +1126,34 @@ long do_vcpu_op(int cmd, int vcpuid,
>> XEN_GUEST_HANDLE_PARAM(void) arg)
>>          break;
>>      }
>>  
>> +    case VCPUOP_register_runstate_memory_area:
>> +    {
>> +        struct vcpu_register_runstate_memory_area area;
>> +        struct vcpu_runstate_info runstate;
>> +
>> +        rc = -EFAULT;
>> +        if ( copy_from_guest(&area, arg, 1) )
>> +            break;
>> +
>> +        if ( !guest_handle_okay(area.addr.h, 1) )
>> +            break;
>> +
>> +        rc = 0;
>> +        runstate_guest(v) = area.addr.h;
>> +
>> +        if ( v == current )
>> +        {
>> +            __copy_to_guest(runstate_guest(v), &v->runstate, 1);
>> +        }
>> +        else
>> +        {
>> +            vcpu_runstate_get(v, &runstate);
>> +            __copy_to_guest(runstate_guest(v), &runstate, 1);
>> +        }
>> +
>> +        break;
>> +    }
>> +
>>  #ifdef VCPU_TRAP_NMI
>>      case VCPUOP_send_nmi:
>>          if ( !guest_handle_is_null(arg) )
> 
> 

  reply	other threads:[~2013-05-02  8:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-01 19:32 [PATCH 0/2] runstate_memory_area on ARM Stefano Stabellini
2013-05-01 19:32 ` [PATCH 1/2] xen: move VCPUOP_register_runstate_memory_area to common code Stefano Stabellini
2013-05-02  8:05   ` Ian Campbell
2013-05-02  8:27     ` Keir Fraser [this message]
2013-05-08  9:59   ` Ian Campbell
2013-05-08 11:43     ` Stefano Stabellini
2013-05-08 12:30       ` Ian Campbell
2013-05-01 19:32 ` [PATCH 2/2] xen/arm: handle the runstate_memory_area Stefano Stabellini
2013-05-02  8:07   ` Ian Campbell

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=CDA7E1EB.23993%keir.xen@gmail.com \
    --to=keir.xen@gmail.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=keir@xen.org \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /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.