VbglR0CanUsePhysPageList.cpp revision 4e9fbd0167d2f1c8dad3b2729515150dac54f923
868N/A/* $Revision$ */
868N/A/** @file
868N/A * VBoxGuestLibR0 - Physical memory heap.
868N/A */
868N/A
868N/A/*
868N/A * Copyright (C) 2006-2007 Sun Microsystems, Inc.
868N/A *
868N/A * This file is part of VirtualBox Open Source Edition (OSE), as
868N/A * available from http://www.virtualbox.org. This file is free software;
868N/A * you can redistribute it and/or modify it under the terms of the GNU
868N/A * General Public License (GPL) as published by the Free Software
868N/A * Foundation, in version 2 as it comes in the "COPYING" file of the
868N/A * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
868N/A * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
868N/A *
868N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
868N/A * Clara, CA 95054 USA or visit http://www.sun.com if you need
873N/A * additional information or have any questions.
868N/A */
868N/A
868N/A#include "VBGLInternal.h"
868N/A
868N/A
868N/A/**
868N/A * Checks whether the host supports physical page lists or not.
868N/A *
2086N/A * @returns true if it does, false if it doesn't.
868N/A */
1280N/ADECLR0VBGL(bool) VbglR0CanUsePhysPageList(void)
1280N/A{
2086N/A int rc = vbglR0Enter();
1280N/A return RT_SUCCESS(rc)
1280N/A && VBGLR0_CAN_USE_PHYS_PAGE_LIST();
1280N/A}
1280N/A
868N/A