VirtualBox

Changeset 68101 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Jul 25, 2017 9:33:10 AM (7 years ago)
Author:
vboxsync
Message:

Shared folders: stop supporting legacy host code on Linux, add Windows todo.

bugref:8524: Additions/linux: play nicely with distribution-installed Additions
Using physical page lists in HGCM was added in VirtualBox 3.1, and the Linux
and Windows shared folder Additions still have code paths for supporting
older versions. Remove this on Linux and add a todo to Windows to remove it.
This removes all shared folder driver dependencies on the guest library other
than HGCM.

Signed-off-by: Hans de Goede <hdegoede@…>
Reworked by Oracle.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/SharedFolders/driver/file.c

    r63566 r68101  
    9292    uint32_t cbIO;
    9393
     94    /** @todo Remove the test and the fall-back path.  VbglR0CanUsePhysPageList()
     95     *        returns true for any host version after 3.0, i.e. further back than
     96     *        we support. */
    9497    if (VbglR0CanUsePhysPageList())
    9598    {
  • trunk/src/VBox/Additions/linux/sharedfolders/regops.c

    r65992 r68101  
    233233        }
    234234
    235 #if 1
    236         if (VbglR0CanUsePhysPageList())
    237         {
    238             err = VbglR0SfWritePhysCont(&client_handle, &sf_g->map, sf_r->handle,
    239                                         pos, &nwritten, tmp_phys);
    240             err = RT_FAILURE(err) ? -EPROTO : 0;
    241         }
    242         else
    243 #endif
    244             err = sf_reg_write_aux(__func__, sf_g, sf_r, tmp, &nwritten, pos);
     235        err = VbglR0SfWritePhysCont(&client_handle, &sf_g->map, sf_r->handle,
     236                                    pos, &nwritten, tmp_phys);
    245237        if (err)
    246238            goto fail;
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