[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 3 Mar 2015 17:44:31 +0100
From: Radim Krčmář <rkrcmar@...hat.com>
To: Joel Schopp <joel.schopp@....com>
Cc: Gleb Natapov <gleb@...nel.org>,
Paolo Bonzini <pbonzini@...hat.com>, kvm@...r.kernel.org,
David Kaplan <David.Kaplan@....com>,
Joerg Roedel <joro@...tes.org>, linux-kernel@...r.kernel.org,
Borislav Petkov <bp@...en8.de>
Subject: Re: [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);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists