New XENMAPSPACE_gmfn parameter for XENMEM_add_to_physmap.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
Keir Fraser committed 2009-01-09 11:44:35 +00:00
1 parent a562362b25
commit 3e50af3d87
3 files changed
+12 -9

No files matched your search

+6 -4
View File
@@ -3295,13 +3295,16 @@ arch_memory_op(int op, XEN_GUEST_HANDLE(void) arg)
spin_unlock(&d->grant_table->lock);
break;
case XENMAPSPACE_mfn:
{
if ( get_page_from_pagenr(xatp.idx, d) ) {
case XENMAPSPACE_gmfn:
xatp.idx = gmfn_to_mfn(d, xatp.idx);
case XENMAPSPACE_mfn: {
struct xen_ia64_memmap_info memmap_info;
efi_memory_desc_t md;
int ret;
if ( !get_page_from_pagenr(xatp.idx, d) )
break;
mfn = xatp.idx;
page = mfn_to_page(mfn);
@@ -3327,7 +3330,6 @@ arch_memory_op(int op, XEN_GUEST_HANDLE(void) arg)
d->domain_id, xatp.gpfn, xatp.idx, ret);
return ret;
}
}
break;
}
default:
+4 -4
View File
@@ -3808,14 +3808,14 @@ long arch_memory_op(int op, XEN_GUEST_HANDLE(void) arg)
spin_unlock(&d->grant_table->lock);
break;
case XENMAPSPACE_gmfn:
xatp.idx = gmfn_to_mfn(d, xatp.idx);
case XENMAPSPACE_mfn:
{
if ( get_page_from_pagenr(xatp.idx, d) ) {
if ( !get_page_from_pagenr(xatp.idx, d) )
break;
mfn = xatp.idx;
page = mfn_to_page(mfn);
}
break;
}
default:
break;
}
+2 -1
View File
@@ -206,7 +206,8 @@ struct xen_add_to_physmap {
/* Source mapping space. */
#define XENMAPSPACE_shared_info 0 /* shared info page */
#define XENMAPSPACE_grant_table 1 /* grant table page */
#define XENMAPSPACE_mfn 2 /* usual MFN */
#define XENMAPSPACE_mfn 2 /* MFN */
#define XENMAPSPACE_gmfn 3 /* GMFN */
unsigned int space;
/* Index into source mapping space. */
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.