Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1276518

Re: [PATCH] KVM: x86: Add lowest-priority support for vt-d posted-interrupts

From Radim Krcmár <rkrcmar@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH] KVM: x86: Add lowest-priority support for vt-d posted-interrupts
Date 2015-11-24 15:40 +0100
Message-ID <qymVb-Ro-13@gated-at.bofh.it> (permalink)
References <qsL0d-Bm-1@gated-at.bofh.it> <qvxk6-2PK-13@gated-at.bofh.it> <qvL3I-3gw-21@gated-at.bofh.it> <qyaAG-1iQ-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


2015-11-24 01:26+0000, Wu, Feng:
>> From: Paolo Bonzini [mailto:pbonzini@redhat.com]
>> On 16/11/2015 20:03, Radim Krčmář wrote:
>> > 2015-11-09 10:46+0800, Feng Wu:
>> >> Use vector-hashing to handle lowest-priority interrupts for
>> >> posted-interrupts. As an example, modern Intel CPUs use this
>> >> method to handle lowest-priority interrupts.
>> >
>> > (I don't think it's a good idea that the algorithm differs from non-PI
>> >  lowest priority delivery.  I'd make them both vector-hashing, which
>> >  would be "fun" to explain to people expecting round robin ...)
>> 
>> Yup, I would make it a module option.  Thanks very much Radim for
>> helping with the review.
> 
> Thanks for your guys' review. Yes, we can introduce a module option
> for it. According to Radim's comments above, we need use the
> same policy for PI and non-PI lowest-priority interrupts, so here is the
> question: for vector hashing, it is easy to apply it for both non-PI and PI
> case, however, for Round-Robin, in non-PI case, the round robin counter
> is used and updated when the interrupt is injected to guest, but for
> PI case, the interrupt is injected to guest totally by hardware, software
> cannot control it while interrupt delivery, we can only decide the
> destination vCPU for the PI interrupt in the initial configuration
> time (guest update vMSI -> QEMU -> KVM). Do you guys have any good
> suggestion to do round robin for PI lowest-priority? Seems Round robin
> is not a good way for PI lowest-priority interrupts. Any comments
> are appreciated!

It's meaningless to try dynamic algorithms with PI so if we allow both
lowest priority algorithms, I'd let PI handle any lowest priority only
with vector hashing.  (It's an ugly compromise.)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH] KVM: x86: Add lowest-priority support for vt-d  posted-interrupts Radim Krčmář <rkrcmar@redhat.com> - 2015-11-16 20:10 +0100
  Re: [PATCH] KVM: x86: Add lowest-priority support for vt-d  posted-interrupts Paolo Bonzini <pbonzini@redhat.com> - 2015-11-17 10:50 +0100
    RE: [PATCH] KVM: x86: Add lowest-priority support for vt-d  posted-interrupts "Wu, Feng" <feng.wu@intel.com> - 2015-11-24 02:30 +0100
      Re: [PATCH] KVM: x86: Add lowest-priority support for vt-d  posted-interrupts Radim Krcmár <rkrcmar@redhat.com> - 2015-11-24 15:40 +0100
        Re: [PATCH] KVM: x86: Add lowest-priority support for vt-d  posted-interrupts Paolo Bonzini <pbonzini@redhat.com> - 2015-11-24 15:40 +0100
          RE: [PATCH] KVM: x86: Add lowest-priority support for vt-d  posted-interrupts "Wu, Feng" <feng.wu@intel.com> - 2015-11-25 03:00 +0100
            Re: [PATCH] KVM: x86: Add lowest-priority support for vt-d  posted-interrupts Paolo Bonzini <pbonzini@redhat.com> - 2015-11-25 12:40 +0100
  RE: [PATCH] KVM: x86: Add lowest-priority support for vt-d  posted-interrupts "Wu, Feng" <feng.wu@intel.com> - 2015-11-24 02:30 +0100
    Re: [PATCH] KVM: x86: Add lowest-priority support for vt-d  posted-interrupts Radim Krčmář <rkrcmar@redhat.com> - 2015-11-24 15:40 +0100
      Re: [PATCH] KVM: x86: Add lowest-priority support for vt-d  posted-interrupts Radim Krčmář <rkrcmar@redhat.com> - 2015-11-24 15:50 +0100
      RE: [PATCH] KVM: x86: Add lowest-priority support for vt-d  posted-interrupts "Wu, Feng" <feng.wu@intel.com> - 2015-11-25 04:30 +0100
        Re: [PATCH] KVM: x86: Add lowest-priority support for vt-d  posted-interrupts Radim Krcmár <rkrcmar@redhat.com> - 2015-11-25 15:20 +0100
          Re: [PATCH] KVM: x86: Add lowest-priority support for vt-d  posted-interrupts Paolo Bonzini <pbonzini@redhat.com> - 2015-11-25 15:40 +0100
            Re: [PATCH] KVM: x86: Add lowest-priority support for vt-d  posted-interrupts Radim Krčmář <rkrcmar@redhat.com> - 2015-11-25 16:50 +0100
              RE: [PATCH] KVM: x86: Add lowest-priority support for vt-d  posted-interrupts "Wu, Feng" <feng.wu@intel.com> - 2015-11-26 07:30 +0100
                Re: [PATCH] KVM: x86: Add lowest-priority support for vt-d  posted-interrupts Radim Krcmár <rkrcmar@redhat.com> - 2015-11-26 15:10 +0100

csiph-web