OvmfPkg/Bhyve: use a proper PCI IO range
Bhyve uses an io port range of [ 0x2000, 0x10000 ] [1]. At the moment, EDKII is using a subset of this range [ 0xC000, 0x10000 ] [2]. Even though the EDKII range doesn't exceed the bhyve range, it's causing issues on some guests like OpenBSD [3]. We don't know why it's causing issues yet. However, using the same IO port range in EDKII fixes the issue and is a good idea anyway. [1]82ea0132c8/usr.sbin/bhyve/pci_emul.c (L133-L134)[2]fb044b7fe8/OvmfPkg/Bhyve/PlatformPei/Platform.c (L156-L157)[3] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274389 Signed-off-by: Corvin Köhne <corvink@FreeBSD.org> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Rebecca Cran <rebecca@bsdio.com> Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
		
				
					committed by
					
						
						mergify[bot]
					
				
			
			
				
	
			
			
			
						parent
						
							553dfb0f57
						
					
				
				
					commit
					238690a30d
				
			@@ -153,8 +153,8 @@ MemMapInitialization (
 | 
				
			|||||||
  UINT64         PciIoSize;
 | 
					  UINT64         PciIoSize;
 | 
				
			||||||
  RETURN_STATUS  PcdStatus;
 | 
					  RETURN_STATUS  PcdStatus;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  PciIoBase = 0xC000;
 | 
					  PciIoBase = 0x2000;
 | 
				
			||||||
  PciIoSize = 0x4000;
 | 
					  PciIoSize = 0xE000;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  //
 | 
					  //
 | 
				
			||||||
  // Create Memory Type Information HOB
 | 
					  // Create Memory Type Information HOB
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user