lkml.org 
[lkml]   [2009]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] kvm/x86: check KVM_REQ_TLB_FLUSH with irqs disabled
Marcelo Tosatti wrote:
> BTW, I've wondered if the local_irq_enable in svm_vcpu_run is safe:
>
> clgi();
>
> local_irq_enable();
>
> There is no way that an interrupt can be handled there without an exit,
> right?
>

clgi trumps sti, so all interrupts will be deferred until the guest is
entered (which will cause an immediate vmexit).

--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.



\
 
 \ /
  Last update: 2009-03-16 19:37    [W:0.044 / U:2.664 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site