Re: [SeaBIOS] [PATCH 0/2] virtio: pci cfg access

2016-06-17 Thread Kevin O'Connor
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

Re: [SeaBIOS] [PATCH v2] fw/msr_feature_control: add support to set MSR_IA32_FEATURE_CONTROL

2016-06-17 Thread Kevin O'Connor
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.

[SeaBIOS] [PATCH 2/2] virtio: pci cfg access

2016-06-17 Thread Gerd Hoffmann
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

[SeaBIOS] [PATCH 1/2] virtio: uninline _vp_{read,write}

2016-06-17 Thread Gerd Hoffmann
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 ++-

[SeaBIOS] [PATCH 0/2] virtio: pci cfg access

2016-06-17 Thread Gerd Hoffmann
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):

Re: [SeaBIOS] [PATCH v2] fw/msr_feature_control: add support to set MSR_IA32_FEATURE_CONTROL

2016-06-17 Thread Paolo Bonzini
> 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

[SeaBIOS] [PATCH v2] fw/msr_feature_control: add support to set MSR_IA32_FEATURE_CONTROL

2016-06-17 Thread Haozhong Zhang
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