VirtualBox

Changeset 7438 in vbox


Ignore:
Timestamp:
Mar 12, 2008 4:12:14 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
28876
Message:

Additions/Linux: turn off the graphics capability when the additions first load

Location:
trunk/src/VBox/Additions/linux/module
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/module/files_vboxadd

    r7183 r7438  
    3636    ${PATH_ROOT}/include/VBox/types.h=>include/VBox/types.h \
    3737    ${PATH_ROOT}/include/VBox/ostypes.h=>include/VBox/ostypes.h \
     38    ${PATH_ROOT}/include/VBox/VBoxDev.h=>include/VBox/VBoxDev.h \
    3839    ${PATH_ROOT}/include/VBox/VBoxGuest.h=>include/VBox/VBoxGuest.h \
    3940    ${PATH_ROOT}/include/VBox/VBoxGuestLib.h=>include/VBox/VBoxGuestLib.h \
  • trunk/src/VBox/Additions/linux/module/vboxmod.c

    r7433 r7438  
    6565
    6666#include <VBox/log.h>
     67#include <VBox/VBoxDev.h>
    6768#include <iprt/asm.h>
    6869#include <iprt/assert.h>
     
    941942    VbglGRFree(&infoReq->header);
    942943
     944    /* Unset the graphics capability until/unless X is loaded. */
     945    /** @todo check the error code once we bump the additions version.
     946              For now we ignore it for compatibility with older hosts. */
     947    {
     948        VMMDevReqGuestCapabilities2 *vmmreqGuestCaps;
     949
     950       
     951        rcVBox = VbglGRAlloc((VMMDevRequestHeader**)&vmmreqGuestCaps,
     952                              sizeof(VMMDevReqGuestCapabilities2),
     953                              VMMDevReq_SetGuestCapabilities);
     954        if (VBOX_FAILURE(rcVBox))
     955        {
     956            LogRelFunc(("could not allocate request structure! rc = %Vrc\n", rcVBox));
     957            goto fail;
     958        }
     959        vmmreqGuestCaps->u32OrMask = 0;
     960        vmmreqGuestCaps->u32NotMask = VMMDEV_GUEST_SUPPORTS_GRAPHICS;
     961        rcVBox = VbglGRPerform(&vmmreqGuestCaps->header);
     962        VbglGRFree(&vmmreqGuestCaps->header);
     963        if (RT_FAILURE(rcVBox))
     964            goto fail;
     965    }
     966
    943967    /* perform hypervisor address space reservation */
    944968    if (vboxadd_reserve_hypervisor())
Note: See TracChangeset for help on using the changeset viewer.

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