// SPDX-License-Identifier: GPL-2.0-only /* * svm_int_ctl_test * * Copyright (C) 2021, Red Hat, Inc. * * Nested SVM testing: test simultaneous use of V_IRQ from L1 and L0.
*/
staticvoid l2_guest_code(struct svm_test_data *svm)
{ /* This code raises interrupt INTR_IRQ_NUMBER in the L1's LAPIC, * and since L1 didn't enable virtual interrupt masking, * L2 should receive it and not L1. * * L2 also has virtual interrupt 'VINTR_IRQ_NUMBER' pending in V_IRQ * so it should also receive it after the following 'sti'.
*/
x2apic_write_reg(APIC_ICR,
APIC_DEST_SELF | APIC_INT_ASSERT | INTR_IRQ_NUMBER);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.