View | Details | Raw Unified | Return to bug 208168
Collapse All | Expand All

(-)b/sys/amd64/vmm/vmm.c (-1 / +1 lines)
Lines 914-920 vm_gpa_hold(struct vm *vm, int vcpuid, vm_paddr_t gpa, size_t len, int reqprot, Link Here
914
        * guaranteed if at least one vcpu is in the VCPU_FROZEN state.
914
        * guaranteed if at least one vcpu is in the VCPU_FROZEN state.
915
        */
915
        */
916
       int state;
916
       int state;
917
       KASSERT(vcpuid >= -1 || vcpuid < VM_MAXCPU, ("%s: invalid vcpuid %d",
917
       KASSERT(vcpuid >= -1 && vcpuid < VM_MAXCPU, ("%s: invalid vcpuid %d",
918
           __func__, vcpuid));
918
           __func__, vcpuid));
919
       for (i = 0; i < VM_MAXCPU; i++) {
919
       for (i = 0; i < VM_MAXCPU; i++) {
920
               if (vcpuid != -1 && vcpuid != i)
920
               if (vcpuid != -1 && vcpuid != i)

Return to bug 208168