XEN_API
ULONG
MemoryDecreaseReservation(
+ IN ULONG Order,
IN ULONG Count,
IN PPFN_NUMBER PfnArray
)
LONG_PTR rc;
set_xen_guest_handle(op.extent_start, PfnArray);
- op.extent_order = 0;
+ op.extent_order = Order;
op.mem_flags = 0;
op.domid = DOMID_SELF;
op.nr_extents = Count;
XEN_API
ULONG
MemoryPopulatePhysmap(
+ IN ULONG Order,
IN ULONG Count,
IN PPFN_NUMBER PfnArray
)
LONG_PTR rc;
set_xen_guest_handle(op.extent_start, PfnArray);
- op.extent_order = 0;
+ op.extent_order = Order;
op.mem_flags = 0;
op.domid = DOMID_SELF;
op.nr_extents = Count;
IN PPFN_NUMBER PfnArray
)
{
- LARGE_INTEGER Start;
- LARGE_INTEGER End;
- ULONGLONG TimeDelta;
- ULONGLONG Rate;
- ULONG Count;
+ LARGE_INTEGER Start;
+ LARGE_INTEGER End;
+ ULONGLONG TimeDelta;
+ ULONGLONG Rate;
+ ULONG Count;
ASSERT(Requested != 0);
KeQuerySystemTime(&Start);
- Count = MemoryPopulatePhysmap(Requested, PfnArray);
+ Count = MemoryPopulatePhysmap(Requested, PAGE_ORDER_4K, PfnArray);
KeQuerySystemTime(&End);
TimeDelta = __max(((End.QuadPart - Start.QuadPart) / 10000ull), 1);
IN PPFN_NUMBER PfnArray
)
{
- LARGE_INTEGER Start;
- LARGE_INTEGER End;
- ULONGLONG TimeDelta;
- ULONGLONG Rate;
- ULONG Count;
+ LARGE_INTEGER Start;
+ LARGE_INTEGER End;
+ ULONGLONG TimeDelta;
+ ULONGLONG Rate;
+ ULONG Count;
ASSERT(Requested != 0);
KeQuerySystemTime(&Start);
- Count = MemoryDecreaseReservation(Requested, PfnArray);
+ Count = MemoryDecreaseReservation(Requested, PAGE_ORDER_4K, PfnArray);
KeQuerySystemTime(&End);
TimeDelta = __max(((End.QuadPart - Start.QuadPart) / 10000ull), 1);