Skip to content

Conversation

@johnelse
Copy link
Contributor

GVT-g is now always enabled, independent of whether the device is hidden
from xen/dom0.

Passthrough of Intel GPUs still requires the device to be hidden from
both xen and dom0.

@johnelse
Copy link
Contributor Author

n.b. More information about the required behaviour is linked from the CA ticket.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The match statement means I have to keep track of what's what. Given they're all boolean values wouldn't it be jsut as clean to use if statements?

let passthrough_types = 
  if not is_system_display_device || not is_host_display_enabled && is_pci_hidden
  then [passthrough_gpu]
  else [] in
...

The match case with false, _, _ and then true, [other stuff] are collapsed.

@simonjbeaumont
Copy link
Contributor

I think I'll wait until your in the office to discuss the semantic change but some comments on the style above.

@johnelse
Copy link
Contributor Author

Agreed, this could be a bit neater. Let's discuss tomorrow.

GVT-g is now always enabled, independent of whether the device is hidden
from xen/dom0.

Passthrough of Intel GPUs still requires the device to be hidden from
both xen and dom0.

Signed-off-by: John Else <[email protected]>
@johnelse
Copy link
Contributor Author

Looks like Jenkins is a bit out of sync:

16:08:34 File "xapi_xenops.ml", line 826, characters 3-20:
16:08:34 Error: Unbound record field has_vendor_device

@johnelse
Copy link
Contributor Author

I'm going to merge this, as the Jenkins build is passing now.

johnelse added a commit that referenced this pull request Dec 17, 2015
CA-193817: Allow GVT-g even when device is hidden from xen/dom0
@johnelse johnelse merged commit c9e5518 into xapi-project:master Dec 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants