[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [v3][PATCH 05/16] xen: enable XENMEM_memory_map in hvm
> From: Chen, Tiejun > Sent: Thursday, June 11, 2015 9:15 AM > > This patch enables XENMEM_memory_map in hvm. So we can use it to > setup the e820 mappings. > > Signed-off-by: Tiejun Chen <tiejun.chen@xxxxxxxxx> > Reviewed-by: Tim Deegan <tim@xxxxxxx> Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx> > --- > xen/arch/x86/hvm/hvm.c | 2 -- > xen/arch/x86/mm.c | 6 ------ > 2 files changed, 8 deletions(-) > > diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c > index f354cb7..fab5637 100644 > --- a/xen/arch/x86/hvm/hvm.c > +++ b/xen/arch/x86/hvm/hvm.c > @@ -4728,7 +4728,6 @@ static long hvm_memory_op(int cmd, > XEN_GUEST_HANDLE_PARAM(void) arg) > > switch ( cmd & MEMOP_CMD_MASK ) > { > - case XENMEM_memory_map: > case XENMEM_machine_memory_map: > case XENMEM_machphys_mapping: > return -ENOSYS; > @@ -4804,7 +4803,6 @@ static long hvm_memory_op_compat32(int cmd, > XEN_GUEST_HANDLE_PARAM(void) arg) > > switch ( cmd & MEMOP_CMD_MASK ) > { > - case XENMEM_memory_map: > case XENMEM_machine_memory_map: > case XENMEM_machphys_mapping: > return -ENOSYS; > diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c > index 472c494..4923ccd 100644 > --- a/xen/arch/x86/mm.c > +++ b/xen/arch/x86/mm.c > @@ -4717,12 +4717,6 @@ long arch_memory_op(unsigned long cmd, > XEN_GUEST_HANDLE_PARAM(void) arg) > return rc; > } > > - if ( is_hvm_domain(d) ) > - { > - rcu_unlock_domain(d); > - return -EPERM; > - } > - > e820 = xmalloc_array(e820entry_t, fmap.map.nr_entries); > if ( e820 == NULL ) > { > -- > 1.9.1 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |