OvmfPkg/QemuFlashFvbServicesRuntimeDxe: Fix erase blocks for SEV-ES
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3008
The original SEV-ES support missed updating the QemuFlashEraseBlock()
function to successfully erase blocks. Update QemuFlashEraseBlock() to
call the QemuFlashPtrWrite() to be able to successfully perform the
commands under SEV-ES.
Fixes: 437eb3f7a8
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Message-Id: <309c5317a3107bd0e650be20731842a2e1d4b59a.1604685192.git.thomas.lendacky@amd.com>
			
			
This commit is contained in:
		
				
					committed by
					
						
						mergify[bot]
					
				
			
			
				
	
			
			
			
						parent
						
							f714fd67f2
						
					
				
				
					commit
					fdce11226c
				
			@@ -232,8 +232,8 @@ QemuFlashEraseBlock (
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  Ptr = QemuFlashPtr (Lba, 0);
 | 
			
		||||
  *Ptr = BLOCK_ERASE_CMD;
 | 
			
		||||
  *Ptr = BLOCK_ERASE_CONFIRM_CMD;
 | 
			
		||||
  QemuFlashPtrWrite (Ptr, BLOCK_ERASE_CMD);
 | 
			
		||||
  QemuFlashPtrWrite (Ptr, BLOCK_ERASE_CONFIRM_CMD);
 | 
			
		||||
  return EFI_SUCCESS;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user