|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 18 of 25] libxc: switch page offlining interfaces to
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1287756891 -3600
# Node ID 6624f76887ab0672598d99d4ab5a37815d5b4aa3
# Parent 571e4fd050f7ae7cad9a94c94f9be79acf55710d
libxc: switch page offlining interfaces to hypercall buffers
There is no need to lock/bounce minfo->pfn_type in init_mem_info since
xc_get_pfn_type_batch() will take care of that for us.
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
diff -r 571e4fd050f7 -r 6624f76887ab tools/libxc/xc_offline_page.c
--- a/tools/libxc/xc_offline_page.c Fri Oct 22 15:14:51 2010 +0100
+++ b/tools/libxc/xc_offline_page.c Fri Oct 22 15:14:51 2010 +0100
@@ -294,12 +294,6 @@ static int init_mem_info(xc_interface *x
minfo->pfn_type[i] = pfn_to_mfn(i, minfo->p2m_table,
minfo->guest_width);
- if ( lock_pages(xch, minfo->pfn_type, minfo->p2m_size *
sizeof(*minfo->pfn_type)) )
- {
- ERROR("Unable to lock pfn_type array");
- goto failed;
- }
-
for (i = 0; i < minfo->p2m_size ; i+=1024)
{
int count = ((dinfo->p2m_size - i ) > 1024 ) ? 1024: (dinfo->p2m_size
- i);
@@ -307,13 +301,11 @@ static int init_mem_info(xc_interface *x
minfo->pfn_type + i)) )
{
ERROR("Failed to get pfn_type %x\n", rc);
- goto unlock;
+ goto failed;
}
}
return 0;
-unlock:
- unlock_pages(xch, minfo->pfn_type, minfo->p2m_size *
sizeof(*minfo->pfn_type));
failed:
if (minfo->pfn_type)
{
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 16 of 25] libxc: convert memory op interface over to hypercall buffers, (continued)
- [Xen-devel] [PATCH 16 of 25] libxc: convert memory op interface over to hypercall buffers, Ian Campbell
- [Xen-devel] [PATCH 14 of 25] libxc: convert tmem interface over to hypercall buffers, Ian Campbell
- [Xen-devel] [PATCH 17 of 25] libxc: convert mmuext op interface over to hypercall buffers, Ian Campbell
- [Xen-devel] [PATCH 19 of 25] libxc: convert ia64 dom0vp interface to hypercall buffers, Ian Campbell
- [Xen-devel] [PATCH 20 of 25] python acm: use hypercall buffer interface, Ian Campbell
- [Xen-devel] [PATCH 21 of 25] python xc: use hypercall buffer interface, Ian Campbell
- [Xen-devel] [PATCH 22 of 25] xenpm: use hypercall buffers, Ian Campbell
- [Xen-devel] [PATCH 23 of 25] secpol: use hypercall buffers, Ian Campbell
- [Xen-devel] [PATCH 24 of 25] libxc: do not align/lock buffers which do not need it, Ian Campbell
- [Xen-devel] [PATCH 25 of 25] libxc: finalise transition to hypercall buffers, Ian Campbell
- [Xen-devel] [PATCH 18 of 25] libxc: switch page offlining interfaces to hypercall buffers,
Ian Campbell <=
- Re: [Xen-devel] [PATCH 00 of 25] libxc: Hypercall buffers, Olaf Hering
|
|
|
|
|