VirtualBox

Changeset 21457 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jul 9, 2009 8:40:08 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
49875
Message:

VMMDev: Adjusted and implemented GetHostVersion.

Location:
trunk/src/VBox/Devices
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Makefile.kmk

    r21372 r21457  
    439439
    440440# For finding PCIInternal.h from VBox/pci.h.
    441 Bus/DevPCI.cpp_INCS     = Bus
     441Bus/DevPCI.cpp_INCS      = Bus
    442442
    443443# For finding and generating vbetables.h (see Graphics/BIOS/Makefile.kmk).
     
    445445Graphics/DevVGA.cpp_DEPS = $(PATH_VgaBiosBin)/vbetables.h
    446446
     447# Reporting it to the guest.
     448VMMDev/VMMDev.cpp_DEFS   = VBOX_SVN_REV=$(VBOX_SVN_REV)
    447449
    448450
  • trunk/src/VBox/Devices/VMMDev/VMMDev.cpp

    r21456 r21457  
    3535#include <VBox/err.h>
    3636#include <VBox/vm.h> /* for VM_IS_EMT */
     37#include <VBox/version.h>
    3738
    3839#include <iprt/assert.h>
     
    15521553                pRequestHeader->rc = VINF_SUCCESS;
    15531554            }
     1555            break;
     1556        }
     1557
     1558        /*
     1559         * Implemented in 3.1.0. The ring-0 VBoxGuestLib uses this to check
     1560         * whether VMMDevHGCMParmType_PhysAddr and VMMDevHGCMParmType_PageList
     1561         * are known to work.
     1562         */
     1563        case VMMDevReq_GetHostVersion:
     1564        {
     1565            AssertMsgBreakStmt(pRequestHeader->size == sizeof(VMMDevReqLogString),
     1566                               ("%#x < %#x\n", pRequestHeader->size, sizeof(VMMDevReqLogString)),
     1567                               pRequestHeader->rc = VERR_INVALID_PARAMETER);
     1568            VMMDevReqHostVersion *pReqHostVer = (VMMDevReqHostVersion*)pRequestHeader;
     1569            pReqHostVer->major = VBOX_VERSION_MAJOR;
     1570            pReqHostVer->minor = VBOX_VERSION_MINOR;
     1571            pReqHostVer->build = VBOX_VERSION_BUILD;
     1572            pReqHostVer->revision = VBOX_SVN_REV;
     1573            pReqHostVer->features = VMMDEV_HVF_PHYS_HGCM_PARAM;
     1574            pReqHostVer->header.rc = VINF_SUCCESS;
    15541575            break;
    15551576        }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette