VirtualBox

Changeset 21039 in vbox for trunk


Ignore:
Timestamp:
Jun 29, 2009 3:57:39 PM (16 years ago)
Author:
vboxsync
Message:

Prevent bouncing right back to ring 3.

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PDMQueue.cpp

    r21035 r21039  
    629629    VM_FF_CLEAR(pVM, VM_FF_PDM_QUEUES);
    630630
     631check_queue:
    631632    /* Prevent other VCPUs from flushing queues at the same time; we'll never flush an item twice, but the order might change. */
    632633    if (ASMAtomicCmpXchgU32(&pVM->pdm.s.fQueueFlushing, 1, 0))
     
    664665            }
    665666        }
     667        if (VM_FF_TESTANDCLEAR(pVM, VM_FF_PDM_QUEUES))
     668            goto check_queue;
     669           
    666670    }
    667671}
  • trunk/src/VBox/VMM/VMMR0/CPUMR0A.asm

    r20997 r21039  
    170170    mov     cr0, xAX                    ;; @todo optimize this.
    171171
    172     fxsave  [xDX + CPUMCPU.Host.fpu]    ; ASSUMES that all VT-x/AMD-V boxes sports fxsave/fxrstor (safe assumption)
     172    fxsave  [xDX + CPUMCPU.Host.fpu]    ; ASSUMES that all VT-x/AMD-V boxes support fxsave/fxrstor (safe assumption)
    173173
    174174    mov     cr0, xCX                    ; and restore old CR0 again ;; @todo optimize this.
     
    221221%endif ; VBOX_WITH_HYBRID_32BIT_KERNEL
    222222
    223     fxsave  [xDX + CPUMCPU.Guest.fpu]   ; ASSUMES that all VT-x/AMD-V boxes sports fxsave/fxrstor (safe assumption)
     223    fxsave  [xDX + CPUMCPU.Guest.fpu]   ; ASSUMES that all VT-x/AMD-V boxes support fxsave/fxrstor (safe assumption)
    224224    fxrstor [xDX + CPUMCPU.Host.fpu]
    225225
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette