[Feature] Support for APIC Virtualization in Xen

Bug #1011469 reported by Yingying Zhao
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
intel
New
Undecided
Unassigned
xen (Ubuntu)
In Progress
Wishlist
Stefan Bader

Bug Description

Add support to the Xen hypervisor for the new APIC Virtualization features avaiable in IvyBridge and beyond.

Expected Upstream Schedule: Xen 4.3

BTW. The corresponding feature for KVM is in: https://bugs.launchpad.net/intel/+bug/900145

Public bug report: https://bugs.launchpad.net/ubuntu/+source/xen/+bug/1160373

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xen (Ubuntu):
status: New → Confirmed
Revision history for this message
Yingying Zhao (yingying-zhao) wrote :

There are 3 commits for this feature:

1.
commit c892426ce32dc68487613a95c1bf6441e8b15e43
Author: Jiongxi Li <email address hidden>
Date: Mon Sep 17 21:06:02 2012 +0100

    xen: add virtual x2apic support for apicv

    basically to benefit from apicv, we need clear MSR bitmap for
    corresponding x2apic MSRs:
      0x800 - 0x8ff: no read intercept for apicv register virtualization
      TPR,EOI,SELF-IPI: no write intercept for virtual interrupt
        delivery

    Signed-off-by: Jiongxi Li <email address hidden>
    Committed-by: Keir Fraser <email address hidden>

2.
commit 25b81a7941d71fabd4c8c56e9d3d76801d061842
Author: Jiongxi Li <email address hidden>
Date: Mon Sep 17 21:05:11 2012 +0100

    xen: enable Virtual-interrupt delivery

    Virtual interrupt delivery avoids Xen to inject vAPIC interrupts
    manually, which is fully taken care of by the hardware. This needs
    some special awareness into existing interrupr injection path:
    For pending interrupt from vLAPIC, instead of direct injection, we may
    need update architecture specific indicators before resuming to guest.
    Before returning to guest, RVI should be updated if any pending IRRs
    EOI exit bitmap controls whether an EOI write should cause VM-Exit. If
    set, a trap-like induced EOI VM-Exit is triggered. The approach here
    is to manipulate EOI exit bitmap based on value of TMR. Level
    triggered irq requires a hook in vLAPIC EOI write, so that vIOAPIC EOI
    is triggered and emulated

    Signed-off-by: Gang Wei <email address hidden>
    Signed-off-by: Yang Zhang <email address hidden>
    Signed-off-by: Jiongxi Li <email address hidden>
    Committed-by: Keir Fraser <email address hidden>

3.
commit f62b02e177cd03da2b8397b9bdf1a53b541df3f3
Author: Jiongxi Li <email address hidden>
Date: Mon Sep 17 21:04:08 2012 +0100

    xen: enable APIC-Register Virtualization

    Add APIC register virtualization support
     - APIC read doesn't cause VM-Exit
     - APIC write becomes trap-like

    Signed-off-by: Gang Wei <email address hidden>
    Signed-off-by: Yang Zhang <email address hidden>
    Signed-off-by: Jiongxi Li <email address hidden>

Stefan Bader (smb)
Changed in xen (Ubuntu):
assignee: nobody → Stefan Bader (stefan-bader-canonical)
status: Confirmed → In Progress
importance: Undecided → Wishlist
Revision history for this message
Stefan Bader (smb) wrote :

Tested on hardware without support and on a Romley system which was the only one (I had access to) supporting the feature.

Stefan Bader (smb)
description: updated
Revision history for this message
Yingying Zhao (yingying-zhao) wrote :

Romley with Ivy Bridge-EP processor is the right platform to verify this feature.

information type: Private → Public
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.