• Home
  • Raw
  • Download

Lines Matching refs:frag

6901 	struct kvm_mmio_fragment *frag = &vcpu->mmio_fragments[0];  in write_exit_mmio()  local
6903 memcpy(vcpu->run->mmio.data, frag->data, min(8u, frag->len)); in write_exit_mmio()
6930 struct kvm_mmio_fragment *frag; in emulator_read_write_onepage() local
6965 frag = &vcpu->mmio_fragments[vcpu->mmio_nr_fragments++]; in emulator_read_write_onepage()
6966 frag->gpa = gpa; in emulator_read_write_onepage()
6967 frag->data = val; in emulator_read_write_onepage()
6968 frag->len = bytes; in emulator_read_write_onepage()
10210 struct kvm_mmio_fragment *frag; in complete_emulated_mmio() local
10216 frag = &vcpu->mmio_fragments[vcpu->mmio_cur_fragment]; in complete_emulated_mmio()
10217 len = min(8u, frag->len); in complete_emulated_mmio()
10219 memcpy(frag->data, run->mmio.data, len); in complete_emulated_mmio()
10221 if (frag->len <= 8) { in complete_emulated_mmio()
10223 frag++; in complete_emulated_mmio()
10227 frag->data += len; in complete_emulated_mmio()
10228 frag->gpa += len; in complete_emulated_mmio()
10229 frag->len -= len; in complete_emulated_mmio()
10243 run->mmio.phys_addr = frag->gpa; in complete_emulated_mmio()
10245 memcpy(run->mmio.data, frag->data, min(8u, frag->len)); in complete_emulated_mmio()
10246 run->mmio.len = min(8u, frag->len); in complete_emulated_mmio()
12619 struct kvm_mmio_fragment *frag; in complete_sev_es_emulated_mmio() local
12625 frag = &vcpu->mmio_fragments[vcpu->mmio_cur_fragment]; in complete_sev_es_emulated_mmio()
12626 len = min(8u, frag->len); in complete_sev_es_emulated_mmio()
12628 memcpy(frag->data, run->mmio.data, len); in complete_sev_es_emulated_mmio()
12630 if (frag->len <= 8) { in complete_sev_es_emulated_mmio()
12632 frag++; in complete_sev_es_emulated_mmio()
12636 frag->data += len; in complete_sev_es_emulated_mmio()
12637 frag->gpa += len; in complete_sev_es_emulated_mmio()
12638 frag->len -= len; in complete_sev_es_emulated_mmio()
12650 run->mmio.phys_addr = frag->gpa; in complete_sev_es_emulated_mmio()
12651 run->mmio.len = min(8u, frag->len); in complete_sev_es_emulated_mmio()
12654 memcpy(run->mmio.data, frag->data, min(8u, frag->len)); in complete_sev_es_emulated_mmio()
12666 struct kvm_mmio_fragment *frag; in kvm_sev_es_mmio_write() local
12680 frag = vcpu->mmio_fragments; in kvm_sev_es_mmio_write()
12682 frag->len = bytes; in kvm_sev_es_mmio_write()
12683 frag->gpa = gpa; in kvm_sev_es_mmio_write()
12684 frag->data = data; in kvm_sev_es_mmio_write()
12690 vcpu->run->mmio.len = min(8u, frag->len); in kvm_sev_es_mmio_write()
12692 memcpy(vcpu->run->mmio.data, frag->data, min(8u, frag->len)); in kvm_sev_es_mmio_write()
12705 struct kvm_mmio_fragment *frag; in kvm_sev_es_mmio_read() local
12719 frag = vcpu->mmio_fragments; in kvm_sev_es_mmio_read()
12721 frag->len = bytes; in kvm_sev_es_mmio_read()
12722 frag->gpa = gpa; in kvm_sev_es_mmio_read()
12723 frag->data = data; in kvm_sev_es_mmio_read()
12729 vcpu->run->mmio.len = min(8u, frag->len); in kvm_sev_es_mmio_read()