Re: [PATCH v2] KVM: X86: Fix exception untrigger on ret to user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



28.06.2021 17:29, Maxim Levitsky пишет:
I used to know that area very very well, and I basically combed
the whole thing back and forth,
and I have patch series to decouple injected and
pending exceptions.

Yes, and also I dislike the fact
that you can't easily distinguish
the exception injected from
user-space, with the PF coming
from the guest itself. They occupy
the same pending/injected fields.
Some refactoring will definitely
not hurt.


I'll refresh my memory on this and then I'll review your patch.

My gut feeling is that you discovered too that injections of
exceptions from userspace is kind of broken and only works
because Qemu doesn't really inject much

Actually I discovered that injecting
_interrupts_ is kinda broken (on Core2),
because they clash with guest's PF.
Maybe if I would be using KVM-supplied
injection APIs, I would avoid the problem.
But I just use KVM_SET_REGS to inject
the interrupt, which perhaps qemu doesn't
do.




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux