search for: mmio_op

Displaying 3 results from an estimated 3 matches for "mmio_op".

Did you mean: mmio_ops
2020 Apr 30
0
[RFC/PATCH 1/1] virtio: Introduce MMIO ops
...vers/virtio/virtio_mmio.c b/drivers/virtio/virtio_mmio.c > index 97d5725..69bfa35 100644 > --- a/drivers/virtio/virtio_mmio.c > +++ b/drivers/virtio/virtio_mmio.c > @@ -100,7 +100,35 @@ struct virtio_mmio_vq_info { > struct list_head node; > }; > > +#ifdef CONFIG_VIRTIO_MMIO_OPS > > +static struct virtio_mmio_ops *mmio_ops; > + > +#define virtio_readb(a) mmio_ops->mmio_readl((a)) > +#define virtio_readw(a) mmio_ops->mmio_readl((a)) > +#define virtio_readl(a) mmio_ops->mmio_readl((a)) > +#define virtio_writeb(val, a) mmio_ops->mmio_wri...
2020 Apr 30
0
[RFC/PATCH 1/1] virtio: Introduce MMIO ops
On Thu, Apr 30, 2020 at 04:04:46PM +0530, Srivatsa Vaddagiri wrote: > * Will Deacon <will at kernel.org> [2020-04-30 11:14:32]: > > > > +#ifdef CONFIG_VIRTIO_MMIO_OPS > > > > > > +static struct virtio_mmio_ops *mmio_ops; > > > + > > > +#define virtio_readb(a) mmio_ops->mmio_readl((a)) > > > +#define virtio_readw(a) mmio_ops->mmio_readl((a)) > > > +#define virtio_readl(a) mmio_ops->mmio_readl((a...
2005 Nov 03
0
[PATCH] vmx-platform-vmread.patch
...if (test_bit(ARCH_VMX_IO_WAIT, &v->arch.arch_vmx.flags)) { printf("VMX I/O has not yet completed\n"); @@ -725,7 +717,6 @@ void handle_mmio(unsigned long va, unsigned long gpa) { - unsigned long eip, eflags, cs; unsigned long inst_len, inst_addr; struct mmio_op *mmio_opp; struct cpu_user_regs *regs; @@ -734,18 +725,17 @@ int i, vm86, ret; mmio_opp = &current->arch.arch_vmx.mmio_op; + regs = mmio_opp->inst_decoder_regs; - - __vmread(GUEST_RIP, &eip); + store_cpu_user_regs(regs); + __vmread(VM_EXIT_INSTRUCTION_...