Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
ecfc79c7
Commit
ecfc79c7
authored
Aug 14, 2008
by
Avi Kivity
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM: VMX: Use interrupt queue for !irqchip_in_kernel
Signed-off-by:
Avi Kivity
<
avi@qumranet.com
>
parent
29415c37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
arch/x86/kvm/vmx.c
arch/x86/kvm/vmx.c
+5
-6
No files found.
arch/x86/kvm/vmx.c
View file @
ecfc79c7
...
...
@@ -2173,7 +2173,7 @@ static void kvm_do_inject_irq(struct kvm_vcpu *vcpu)
clear_bit
(
bit_index
,
&
vcpu
->
arch
.
irq_pending
[
word_index
]);
if
(
!
vcpu
->
arch
.
irq_pending
[
word_index
])
clear_bit
(
word_index
,
&
vcpu
->
arch
.
irq_summary
);
vmx_inject_irq
(
vcpu
,
irq
);
kvm_queue_interrupt
(
vcpu
,
irq
);
}
...
...
@@ -2187,13 +2187,12 @@ static void do_interrupt_requests(struct kvm_vcpu *vcpu,
(
vmcs_read32
(
GUEST_INTERRUPTIBILITY_INFO
)
&
3
)
==
0
);
if
(
vcpu
->
arch
.
interrupt_window_open
&&
vcpu
->
arch
.
irq_summary
&&
!
(
vmcs_read32
(
VM_ENTRY_INTR_INFO_FIELD
)
&
INTR_INFO_VALID_MASK
))
/*
* If interrupts enabled, and not blocked by sti or mov ss. Good.
*/
vcpu
->
arch
.
irq_summary
&&
!
vcpu
->
arch
.
interrupt
.
pending
)
kvm_do_inject_irq
(
vcpu
);
if
(
vcpu
->
arch
.
interrupt_window_open
&&
vcpu
->
arch
.
interrupt
.
pending
)
vmx_inject_irq
(
vcpu
,
vcpu
->
arch
.
interrupt
.
nr
);
cpu_based_vm_exec_control
=
vmcs_read32
(
CPU_BASED_VM_EXEC_CONTROL
);
if
(
!
vcpu
->
arch
.
interrupt_window_open
&&
(
vcpu
->
arch
.
irq_summary
||
kvm_run
->
request_interrupt_window
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment