MSI-X does not need to be enabled in the message control register for the
guest to access the MSI-x tables. Obtained from: NetApp
This commit is contained in:
parent
920bc34090
commit
a07896de6c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/bhyve/; revision=243391
@ -672,7 +672,7 @@ passthru_write(struct vmctx *ctx, int vcpu, struct pci_devinst *pi, int baridx,
|
||||
|
||||
sc = pi->pi_arg;
|
||||
|
||||
if (pi->pi_msix.enabled && pi->pi_msix.table_bar == baridx) {
|
||||
if (pi->pi_msix.table_bar == baridx) {
|
||||
msix_table_write(ctx, vcpu, sc, offset, size, value);
|
||||
} else {
|
||||
assert(pi->pi_bar[baridx].type == PCIBAR_IO);
|
||||
@ -696,7 +696,7 @@ passthru_read(struct vmctx *ctx, int vcpu, struct pci_devinst *pi, int baridx,
|
||||
|
||||
sc = pi->pi_arg;
|
||||
|
||||
if (pi->pi_msix.enabled && pi->pi_msix.table_bar == baridx) {
|
||||
if (pi->pi_msix.table_bar == baridx) {
|
||||
val = msix_table_read(sc, offset, size);
|
||||
} else {
|
||||
assert(pi->pi_bar[baridx].type == PCIBAR_IO);
|
||||
|
Loading…
Reference in New Issue
Block a user