Added three helper functions apic_match_dest(),
apic_match_physical_dest(), and apic_match_logical_dest() which
can be used to determine if a logical or physical APIC ID match a
given LAPIC under a given dest_mode. This does not account for shorthand.
Signed-off-by: James Sullivan
---
hw/intc
Currently, there is no arbitration among processors for low priority IRQ
delivery. Implemented apic_get_arb_pri(), and added two new functions
apic_compare_prio() and apic_lowest_prio() to support arbitration in
apic_bus_deliver().
Signed-off-by: James Sullivan
---
hw/intc/apic.c | 67
In apic_send_msi(), set msi_redir_hint to 0x1 when RH=1 in the
MSI Address Register.
Added an argument for msi_redir_hint to apic_deliver_irq(), and
changed calls to the function accordingly (using 0 as a default value
for non-MSI interrupts).
Signed-off-by: James Sullivan
---
hw/intc/apic.c
message
should target only the lowest-priority processor among those specified
by the logical destination of the IRQ.
Signed-off-by: James Sullivan
---
hw/intc/apic.c | 34 --
1 file changed, 20 insertions(+), 14 deletions(-)
diff --git a/hw/intc/apic.c b/hw/intc
VM in
http://www.spinics.net/lists/kvm/msg114915.html ("kvm: x86: Implement
handling of RH=1 for MSI delivery in KVM"), which are under review but
are largely settled in terms of functionality.
James Sullivan (3):
apic: Added helper function apic_match_dest,
apic_match_[physical,logic
quot;), which are under review but
are largely settled in terms of functionality.
James Sullivan (5):
apic: Implement LAPIC low priority arbitration functions
apic: Implement low priority arbitration for IRQ delivery
apic: Added helper function apic_match_dest,
apic_match_[physical,logical
).
Signed-off-by: James Sullivan
---
hw/intc/apic.c | 20
1 file changed, 4 insertions(+), 16 deletions(-)
diff --git a/hw/intc/apic.c b/hw/intc/apic.c
index b372513..47d2fb1 100644
--- a/hw/intc/apic.c
+++ b/hw/intc/apic.c
@@ -249,22 +249,10 @@ static void apic_bus_del
In apic_send_msi(), set msi_redir_hint to 0x1 when RH=1 in the
MSI Address Register.
Added an argument for msi_redir_hint to apic_deliver_irq(), and
changed calls to the function accordingly (using 0 as a default value
for non-MSI interrupts).
Signed-off-by: James Sullivan
---
Changes in v2
Added three helper functions apic_match_dest(),
apic_match_physical_dest(), and apic_match_logical_dest() which
can be used to determine if a logical or physical APIC ID match a
given LAPIC under a given dest_mode. This does not account for shorthand.
Signed-off-by: James Sullivan
---
hw/intc
Merging this into
<1427224426-9025-1-git-send-email-sullivan.jame...@gmail.com>.
On 03/23/2015 04:26 PM, James Sullivan wrote:
> Currently, there is no arbitration among processors for low priority IRQ
> delivery. Implemented apic_get_arb_pri(), and added two new functions
> ap
message
should target only the lowest-priority processor among those specified
by the logical destination of the IRQ.
Signed-off-by: James Sullivan
---
hw/intc/apic.c | 34 --
1 file changed, 20 insertions(+), 14 deletions(-)
diff --git a/hw/intc/apic.c b/hw/intc
Currently, apic_get_arb_pri() is unimplemented and returns 0.
Implemented apic_get_arb_pri() and added two helper functions
apic_compare_prio() and apic_lowest_prio() to be used for LAPIC
arbitration.
Signed-off-by: James Sullivan
---
hw/intc/apic.c | 47
).
Signed-off-by: James Sullivan
---
hw/intc/apic.c | 20
1 file changed, 4 insertions(+), 16 deletions(-)
diff --git a/hw/intc/apic.c b/hw/intc/apic.c
index b372513..47d2fb1 100644
--- a/hw/intc/apic.c
+++ b/hw/intc/apic.c
@@ -249,22 +249,10 @@ static void apic_bus_del
Added three helper functions apic_match_dest(),
apic_match_physical_dest(), and apic_match_logical_dest() which
can be used to determine if a logical or physical APIC ID match a
given LAPIC under a given dest_mode. This does not account for shorthand.
Signed-off-by: James Sullivan
---
hw/intc
In apic_send_msi(), set msi_redir_hint to 0x1 when RH=1 in the
MSI Address Register.
Added an argument for msi_redir_hint to apic_deliver_irq(), and
changed calls to the function accordingly (using 0 as a default value
for non-MSI interrupts).
Signed-off-by: James Sullivan
---
Changes in v2
Currently, apic_get_arb_pri() is unimplemented and returns 0.
Implemented apic_get_arb_pri() and added two helper functions
apic_compare_prio() and apic_lowest_prio() to be used for LAPIC
arbitration.
Signed-off-by: James Sullivan
---
hw/intc/apic.c | 47
"), which have been reviewed and
discussed on the KVM mailing list.
James Sullivan (5):
apic: Implement LAPIC low priority arbitration functions
apic: Implement low priority arbitration for IRQ delivery
apic: Added helper function apic_match_dest,
apic_match_[physical,logical]_dest
apic
message
should target only the lowest-priority processor among those specified
by the logical destination of the IRQ.
Signed-off-by: James Sullivan
---
hw/intc/apic.c | 34 --
1 file changed, 20 insertions(+), 14 deletions(-)
diff --git a/hw/intc/apic.c b/hw/intc
On 04/23/2015 07:49 AM, Radim Krčmář wrote:
> 2015-04-06 17:45-0600, James Sullivan:
>> Currently, apic_get_arb_pri() is unimplemented and returns 0.
>>
>> Implemented apic_get_arb_pri() and added two helper functions
>> apic_compare_prio() and apic_lowest_
On 04/23/2015 08:14 AM, Radim Krčmář wrote:
> 2015-04-06 17:45-0600, James Sullivan:
>> Added argument to apic_get_delivery_bitmask() for msi_redir_hint,
>> and changed calls to the function accordingly (using 0 as a default
>> value for non-MSI interrupts).
>>
>&g
RH=1 for MSI delivery in KVM"), which is queued for 4.2.
James Sullivan (4):
apic: Implement LAPIC low priority arbitration functions
apic: Set and pass in RH bit for MSI interrupts
apic: Add helper functions apic_match_dest,
apic_match_[physical,logical]_dest
apic: Handle RH=1 a
Currently, apic_get_arb_pri() is unimplemented and returns 0.
Implemented apic_get_arb_pri() and added helper function
apic_compare_prio() to be used for LAPIC arbitration.
Signed-off-by: James Sullivan
---
Changes in v3:
* Fixed apic_get_arb_pri to use AMD's algorithm vs. In
Added three helper functions apic_match_dest(),
apic_match_physical_dest(), and apic_match_logical_dest() which can be
used to determine if a logical or physical APIC ID match a given LAPIC
under a given dest_mode. This does not account for shorthand.
Signed-off-by: James Sullivan
---
hw/intc
.
Signed-off-by: James Sullivan
---
Changes in v3:
* Added extra argument to apic_get_delivery_bitmask() for
delivery_mode
* Perform lowpri arbitration in apic_get_delivery_bitmask() for RH=1
and for APIC_DM_LOWPRI, saving the cost of the LAPIC iteration in v2
* Deliver
In apic_send_msi(), set msi_redir_hint to 0x1 when RH=1 in the
MSI Address Register.
Added an argument for msi_redir_hint to apic_deliver_irq(), and
changed calls to the function accordingly (using 0 as a default value
for non-MSI interrupts).
Signed-off-by: James Sullivan
---
Changes in v2
25 matches
Mail list logo