diff options
author | Laszlo Ersek <lersek@redhat.com> | 2016-03-12 14:41:26 +0100 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2016-04-06 19:21:50 +0200 |
commit | 0a781bdc7f87f87b8c3ef57c2837f116daa8b580 (patch) | |
tree | ad1e94bd73016052a3480a32f145b0799e02ddcf /StdLibPrivateInternalFiles | |
parent | 33c6b934bf973bd3e0f72805ad723558cfffaa7f (diff) | |
download | edk2-platforms-0a781bdc7f87f87b8c3ef57c2837f116daa8b580.tar.xz |
OvmfPkg: VirtioRngDxe: adapt feature negotiation to virtio-1.0
Relative to virtio-0.9.5, virtio-1.0 reverses the order of queue discovery
and feature negotiation. In virtio-1.0, feature negotiation has to
complete first, and the device can also reject a self-inconsistent feature
request through the new VSTAT_FEATURES_OK status bit. (For example if the
driver requests a higher level feature but clears a prerequisite feature.)
Furthermore, we retain the VIRTIO_F_VERSION_1 feature bit if the
VIRTIO_DEVICE_PROTOCOL provider has high enough revision.
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'StdLibPrivateInternalFiles')
0 files changed, 0 insertions, 0 deletions