virtio.h (b3e7694832e81d7a904a10f525f8797b753bf0d3) | virtio.h (55c13f6e7a412cc4bd0ea3fc183cd7c5c2348f01) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright (c) 2013 Chris Torek <torek @ torek net> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 344 unchanged lines hidden (view full) --- 353{ 354 355 if (pci_msix_enabled(vs->vs_pi)) 356 pci_generate_msix(vs->vs_pi, msix_idx); 357 else { 358 VS_LOCK(vs); 359 vs->vs_isr |= isr; 360 pci_generate_msi(vs->vs_pi, 0); | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright (c) 2013 Chris Torek <torek @ torek net> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 344 unchanged lines hidden (view full) --- 353{ 354 355 if (pci_msix_enabled(vs->vs_pi)) 356 pci_generate_msix(vs->vs_pi, msix_idx); 357 else { 358 VS_LOCK(vs); 359 vs->vs_isr |= isr; 360 pci_generate_msi(vs->vs_pi, 0); |
361#ifdef __amd64__ |
|
361 pci_lintr_assert(vs->vs_pi); | 362 pci_lintr_assert(vs->vs_pi); |
363#endif |
|
362 VS_UNLOCK(vs); 363 } 364} 365 366/* 367 * Deliver an interrupt to the guest on the given virtual queue (if 368 * possible, or a generic MSI interrupt if not using MSI-X). 369 */ --- 66 unchanged lines hidden --- | 364 VS_UNLOCK(vs); 365 } 366} 367 368/* 369 * Deliver an interrupt to the guest on the given virtual queue (if 370 * possible, or a generic MSI interrupt if not using MSI-X). 371 */ --- 66 unchanged lines hidden --- |