]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg: VirtioRngDxe: clear all feature bits more explicitly
authorLaszlo Ersek <lersek@redhat.com>
Sat, 12 Mar 2016 00:54:57 +0000 (01:54 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Wed, 6 Apr 2016 11:04:04 +0000 (13:04 +0200)
This too is in preparation for the following patches.

After this patch, all four drivers manage their feature bits with explicit
masking.

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>
OvmfPkg/VirtioRngDxe/VirtioRng.c

index 290bddeeecae2a5995d724581981074977733c43..d916534aac63f3f27d7ea0ac5c59181971e75826 100644 (file)
@@ -294,7 +294,8 @@ VirtioRngInit (
   // currently defined for VirtioRng, and no generic features are needed by\r
   // this driver.\r
   //\r
-  Status = Dev->VirtIo->SetGuestFeatures (Dev->VirtIo, 0);\r
+  Features &= 0;\r
+  Status = Dev->VirtIo->SetGuestFeatures (Dev->VirtIo, Features);\r
   if (EFI_ERROR (Status)) {\r
     goto ReleaseQueue;\r
   }\r