Skip to content
  • George Dunlap's avatar
    xl, libxl: Add per-device and global permissive config options for pci passthrough · 5b0b77fa
    George Dunlap authored
    
    
    By default pciback only allows PV guests to write "known safe" values into
    PCI config space.  But many devices require writes to other areas of config
    space in order to operate properly.  One way to do that is with the "quirks"
    interface, which specifies areas known safe to a particular device; the
    other way is to mark a device as "permissive", which tells pciback to allow
    all config space writes for that domain and device.
    
    This adds a "permissive" flag to the libxl_pci struct and teaches libxl how
    to write the appropriate value into sysfs to enable the permissive feature for
    devices being passed through.  It also adds the permissive config options either
    on a per-device basis, or as a global option in the xl command-line.
    
    Because of the potential stability and security implications of enabling
    permissive, the flag is left off by default.
    
    Signed-off-by: default avatarGeorge Dunlap <george.dunlap@eu.citrix.com>
    Committed-by: Ian Jackson <ian.jackson.citrix.com>
    Acked-by: default avatarIan Jackson <ian.jackson@eu.citrix.com>
    5b0b77fa