VirtualBox

Changeset 59635 in vbox


Ignore:
Timestamp:
Feb 10, 2016 8:00:52 PM (9 years ago)
Author:
vboxsync
Message:

bugref:8087: Additions/x11: support non-root X server: bring back the lastclose call-back, as we get an oops when the driver is unloaded if it is not there.

Location:
trunk/src/VBox/Additions/linux/drm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/drm/vbox_drv.c

    r59597 r59635  
    217217    .load = vbox_driver_load,
    218218    .unload = vbox_driver_unload,
     219    .lastclose = vbox_driver_lastclose,
    219220#if LINUX_VERSION_CODE > KERNEL_VERSION(3, 17, 0)
    220221    .set_busid = drm_pci_set_busid,
  • trunk/src/VBox/Additions/linux/drm/vbox_drv.h

    r59597 r59635  
    123123int vbox_driver_load(struct drm_device *dev, unsigned long flags);
    124124int vbox_driver_unload(struct drm_device *dev);
     125void vbox_driver_lastclose(struct drm_device *dev);
    125126
    126127struct vbox_gem_object;
  • trunk/src/VBox/Additions/linux/drm/vbox_main.c

    r59634 r59635  
    402402}
    403403
     404/** @note this is described in the DRM framework documentation.  AST does not
     405 *        have it, but we get an oops on driver unload if it is not present. */
     406void vbox_driver_lastclose(struct drm_device *dev)
     407{
     408    struct vbox_private *vbox = dev->dev_private;
     409
     410    if (vbox->fbdev)
     411        drm_fb_helper_restore_fbdev_mode_unlocked(&vbox->fbdev->helper);
     412}
     413
    404414int vbox_gem_create(struct drm_device *dev,
    405415           u32 size, bool iskernel,
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