lkml.org 
[lkml]   [2015]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3] x86: svm: use kvm_fast_pio_in()
2015-03-02 15:02-0600, Joel Schopp:
> +int kvm_fast_pio_in(struct kvm_vcpu *vcpu, int size, unsigned short port)
> +{
> + unsigned long val;
> + int ret = emulator_pio_in_emulated(&vcpu->arch.emulate_ctxt, size,
> + port, &val, 1);
> +

Btw. does this return 1 in some scenario?

> + if (ret)
> + kvm_register_write(vcpu, VCPU_REGS_RAX, val);
> + else
> + vcpu->arch.complete_userspace_io = complete_fast_pio;
> +
> + return ret;
> +}
> +EXPORT_SYMBOL_GPL(kvm_fast_pio_in);


\
 
 \ /
  Last update: 2015-03-03 18:01    [W:0.121 / U:0.280 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site