lkml.org 
[lkml]   [2014]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[v2 10/25] KVM: change struct pi_desc for VT-d Posted-Interrupts
    Date
    Change struct pi_desc for VT-d Posted-Interrupts.

    Signed-off-by: Feng Wu <feng.wu@intel.com>
    ---
    arch/x86/kvm/vmx.c | 15 +++++++++++++--
    1 files changed, 13 insertions(+), 2 deletions(-)

    diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
    index 3e556c6..abdb84f 100644
    --- a/arch/x86/kvm/vmx.c
    +++ b/arch/x86/kvm/vmx.c
    @@ -411,8 +411,19 @@ struct nested_vmx {
    /* Posted-Interrupt Descriptor */
    struct pi_desc {
    u32 pir[8]; /* Posted interrupt requested */
    - u32 control; /* bit 0 of control is outstanding notification bit */
    - u32 rsvd[7];
    + union {
    + struct {
    + u64 on : 1,
    + sn : 1,
    + rsvd_1 : 13,
    + ndm : 1,
    + nv : 8,
    + rsvd_2 : 8,
    + ndst : 32;
    + };
    + u64 control;
    + };
    + u32 rsvd[6];
    } __aligned(64);

    static bool pi_test_and_set_on(struct pi_desc *pi_desc)
    --
    1.7.1


    \
     
     \ /
      Last update: 2014-12-03 09:21    [W:2.369 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site