Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157677554
D14548.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D14548.diff
View Options
Index: head/sys/amd64/include/vmm.h
===================================================================
--- head/sys/amd64/include/vmm.h
+++ head/sys/amd64/include/vmm.h
@@ -636,6 +636,7 @@
} spinup_ap;
struct {
uint64_t rflags;
+ uint64_t intr_status;
} hlt;
struct {
int vector;
Index: head/sys/amd64/vmm/intel/vmx.c
===================================================================
--- head/sys/amd64/vmm/intel/vmx.c
+++ head/sys/amd64/vmm/intel/vmx.c
@@ -2282,6 +2282,11 @@
vmm_stat_incr(vmx->vm, vcpu, VMEXIT_HLT, 1);
vmexit->exitcode = VM_EXITCODE_HLT;
vmexit->u.hlt.rflags = vmcs_read(VMCS_GUEST_RFLAGS);
+ if (virtual_interrupt_delivery)
+ vmexit->u.hlt.intr_status =
+ vmcs_read(VMCS_GUEST_INTR_STATUS);
+ else
+ vmexit->u.hlt.intr_status = 0;
break;
case EXIT_REASON_MTF:
vmm_stat_incr(vmx->vm, vcpu, VMEXIT_MTRAP, 1);
@@ -3267,12 +3272,13 @@
* interrupt by reevaluating virtual interrupts
* following Section 29.2.1 in the Intel SDM Volume 3.
*/
- uint64_t val;
+ struct vm_exit *vmexit;
uint8_t rvi, ppr;
- vmx_getreg(vlapic_vtx->vmx, vlapic->vcpuid,
- VMCS_IDENT(VMCS_GUEST_INTR_STATUS), &val);
- rvi = val & APIC_TPR_INT;
+ vmexit = vm_exitinfo(vlapic->vm, vlapic->vcpuid);
+ KASSERT(vmexit->exitcode == VM_EXITCODE_HLT,
+ ("vmx_pending_intr: exitcode not 'HLT'"));
+ rvi = vmexit->u.hlt.intr_status & APIC_TPR_INT;
lapic = vlapic->apic_page;
ppr = lapic->ppr & APIC_TPR_INT;
if (rvi > ppr) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, May 25, 12:10 AM (11 m, 52 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33491194
Default Alt Text
D14548.diff (1 KB)
Attached To
Mode
D14548: Fix a lock recursion introduced in r327065.
Attached
Detach File
Event Timeline
Log In to Comment