On Fri, Jun 17, 2016 at 01:09:05PM +0200, Gerd Hoffmann wrote:
> Hi,
>
> I'm sure I had sent this before, but appearently totally forgot about
> it. Just tested booting with virtio bars mapped above 4G, didn't work.
> Investigated, found this bitroting in a local branch. Undusted it,
> rebased
On Fri, Jun 17, 2016 at 03:20:10PM +0800, Haozhong Zhang wrote:
> OS usually expects BIOS to set certain bits in MSR_IA32_FEATURE_CONTROL
> for some features (e.g. VMX and LMCE). QEMU provides a fw_cfg file
> "etc/msr_feature_control" to advise bits that should be set in
> MSR_IA32_FEATURE_CONTROL.
virtio regions can also be accessed using a window in pci cfg space.
Add support for it. Enable it in case the virtio regions are mapped
high (above 4g), so direct mmio access doesn't work for us even in
32bit mode.
Signed-off-by: Gerd Hoffmann
---
src/hw/virtio-pci.c | 193
Next patch makes it larger, and I don't think it makes sense to
continue inlining it. Uninline and move from header to c file.
Signed-off-by: Gerd Hoffmann
---
src/hw/virtio-pci.c | 79
src/hw/virtio-pci.h | 80 ++-
Hi,
I'm sure I had sent this before, but appearently totally forgot about
it. Just tested booting with virtio bars mapped above 4G, didn't work.
Investigated, found this bitroting in a local branch. Undusted it,
rebased to latest master with some fixups, and here it is ...
Gerd Hoffmann (2):
> Changes in v2:
> * Call msr_feature_control_setup() before smp_setup().
> * Use wrmsr_smp() instead of wrmsr() on BSP.
> * Rename smp_mtrr and smp_mtrr_count to smp_msr and smp_msr_count
>as they are not only used for MTRR now.
> ---
> Makefile | 2 +-
> src/fw/msr_fe
OS usually expects BIOS to set certain bits in MSR_IA32_FEATURE_CONTROL
for some features (e.g. VMX and LMCE). QEMU provides a fw_cfg file
"etc/msr_feature_control" to advise bits that should be set in
MSR_IA32_FEATURE_CONTROL. If this file exists, SeaBIOS will set the
advised bits in that MSR.
Si