search for: lguest_device

Displaying 20 results from an estimated 223 matches for "lguest_device".

2007 Apr 18
0
[RFC/PATCH LGUEST X86_64 09/13] lguest64 devices
...devices for lguest64. This is still very much a work-in-progress and needs much more work. Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Glauber de Oliveira Costa <glommer@gmail.com> Cc: Chris Wright <chrisw@sous-sol.org> Index: work-pv/include/asm-x86_64/lguest_device.h =================================================================== --- /dev/null +++ work-pv/include/asm-x86_64/lguest_device.h @@ -0,0 +1,31 @@ +#ifndef _ASM_LGUEST_DEVICE_H +#define _ASM_LGUEST_DEVICE_H +/* Everything you need to know about lguest devices. */ +#include <linux/device.h> +...
2007 Apr 18
0
[RFC/PATCH LGUEST X86_64 09/13] lguest64 devices
...devices for lguest64. This is still very much a work-in-progress and needs much more work. Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Glauber de Oliveira Costa <glommer@gmail.com> Cc: Chris Wright <chrisw@sous-sol.org> Index: work-pv/include/asm-x86_64/lguest_device.h =================================================================== --- /dev/null +++ work-pv/include/asm-x86_64/lguest_device.h @@ -0,0 +1,31 @@ +#ifndef _ASM_LGUEST_DEVICE_H +#define _ASM_LGUEST_DEVICE_H +/* Everything you need to know about lguest devices. */ +#include <linux/device.h> +...
2007 May 09
1
[patch 2/9] lguest: the guest code
...ret[], lgend_iret[]; +extern void lguest_iret(void); + +struct lguest_data lguest_data = { + .hcall_status = { [0 ... LHCALL_RING_SIZE-1] = 0xFF }, + .noirq_start = (u32)lguest_noirq_start, + .noirq_end = (u32)lguest_noirq_end, + .blocked_interrupts = { 1 }, /* Block timer interrupts */ +}; +struct lguest_device_desc *lguest_devices; +static __initdata const struct lguest_boot_info *boot = __va(0); + +static enum paravirt_lazy_mode lazy_mode; +static void lguest_lazy_mode(enum paravirt_lazy_mode mode) +{ + if (mode == PARAVIRT_LAZY_FLUSH) + hcall(LHCALL_FLUSH_ASYNC, 0, 0, 0); + else { + lazy_mode = mode;...
2007 May 09
1
[patch 2/9] lguest: the guest code
...ret[], lgend_iret[]; +extern void lguest_iret(void); + +struct lguest_data lguest_data = { + .hcall_status = { [0 ... LHCALL_RING_SIZE-1] = 0xFF }, + .noirq_start = (u32)lguest_noirq_start, + .noirq_end = (u32)lguest_noirq_end, + .blocked_interrupts = { 1 }, /* Block timer interrupts */ +}; +struct lguest_device_desc *lguest_devices; +static __initdata const struct lguest_boot_info *boot = __va(0); + +static enum paravirt_lazy_mode lazy_mode; +static void lguest_lazy_mode(enum paravirt_lazy_mode mode) +{ + if (mode == PARAVIRT_LAZY_FLUSH) + hcall(LHCALL_FLUSH_ASYNC, 0, 0, 0); + else { + lazy_mode = mode;...
2007 Apr 18
1
[PATCH 0/8] lguest
...says there's no clflush, ie. pre Pentium 4). (Discovered while playing with CPUID). - Rename many internal shadow pagetable functions & vars for clarity. - Remove cr3 member from "struct lguest": easy to calculate when needed. - Add comment on lack of interface stability. - Move lguest_devices array declaration from lguest.h to lguest_bus.h (it's only useful for devices). - Use read_cr0() and write_cr0() rather than open-coding them. - Use KERN_INFO on printk() for lguest initialization - Remove unneeded __attribute_used__ in core.c - Print out message when failing to run lguest u...
2007 Apr 18
1
[PATCH 0/8] lguest
...says there's no clflush, ie. pre Pentium 4). (Discovered while playing with CPUID). - Rename many internal shadow pagetable functions & vars for clarity. - Remove cr3 member from "struct lguest": easy to calculate when needed. - Add comment on lack of interface stability. - Move lguest_devices array declaration from lguest.h to lguest_bus.h (it's only useful for devices). - Use read_cr0() and write_cr0() rather than open-coding them. - Use KERN_INFO on printk() for lguest initialization - Remove unneeded __attribute_used__ in core.c - Print out message when failing to run lguest u...
2011 Nov 14
3
[RFC PATCH net-next] enable virtio_net to return bus_info in ethtool -i consistent with emulated NICs
...io_config_ops then modify virtio_net to call through to it in an ethtool .get_drvinfo routine to report bus_info in ethtool -i output which is consistent with other emulated NICs and the output of lspci. Signed-off-by: Rick Jones <rick.jones2 at hp.com> --- The changes to drivers/lguest/lguest_device.c, drivers/s390/kvm/kvm_virtio.c, and drivers/virtio/virtio_mmio.c code inspected only, not compiled. raj at raj-ubuntu-guest:~$ ethtool -i eth0 driver: virtio_net version: 1.0.0 firmware-version: bus-info: 0000:00:03.0 raj at raj-ubuntu-guest:~$ lspci | grep Ether 00:03.0 Ethernet controller: Re...
2011 Nov 14
3
[RFC PATCH net-next] enable virtio_net to return bus_info in ethtool -i consistent with emulated NICs
...io_config_ops then modify virtio_net to call through to it in an ethtool .get_drvinfo routine to report bus_info in ethtool -i output which is consistent with other emulated NICs and the output of lspci. Signed-off-by: Rick Jones <rick.jones2 at hp.com> --- The changes to drivers/lguest/lguest_device.c, drivers/s390/kvm/kvm_virtio.c, and drivers/virtio/virtio_mmio.c code inspected only, not compiled. raj at raj-ubuntu-guest:~$ ethtool -i eth0 driver: virtio_net version: 1.0.0 firmware-version: bus-info: 0000:00:03.0 raj at raj-ubuntu-guest:~$ lspci | grep Ether 00:03.0 Ethernet controller: Re...
2011 Mar 10
3
[PATCH 00/02] virtio: Virtio platform driver
...virtio_pci driver, but instead of building on top of emulated PCI this driver is making use of the platform bus together with driver specific callbacks. The virtio platform driver can be seen as a reusable implementation of the lguest virtio driver - in fact, most code is just taken directly from lguest_device.c and reworked to fit the platform device driver abstraction. The first patch breaks out code that can be shared between lguest and the virtio platform driver. This code has been used to implement a mailbox interface between the two processor cores included in the sh7372 SoC. The sh7372 contains o...
2011 Mar 10
3
[PATCH 00/02] virtio: Virtio platform driver
...virtio_pci driver, but instead of building on top of emulated PCI this driver is making use of the platform bus together with driver specific callbacks. The virtio platform driver can be seen as a reusable implementation of the lguest virtio driver - in fact, most code is just taken directly from lguest_device.c and reworked to fit the platform device driver abstraction. The first patch breaks out code that can be shared between lguest and the virtio platform driver. This code has been used to implement a mailbox interface between the two processor cores included in the sh7372 SoC. The sh7372 contains o...
2011 Jun 21
6
[PATCH 00/02][RESEND] virtio: Virtio platform driver
...virtio_pci driver, but instead of building on top of emulated PCI this driver is making use of the platform bus together with driver specific callbacks. The virtio platform driver can be seen as a reusable implementation of the lguest virtio driver - in fact, most code is just taken directly from lguest_device.c and reworked to fit the platform device driver abstraction. The first patch breaks out code that can be shared between lguest and the virtio platform driver. This code has been used to implement a mailbox interface between the two processor cores included in the sh7372 SoC. The sh7372 contains o...
2011 Jun 21
6
[PATCH 00/02][RESEND] virtio: Virtio platform driver
...virtio_pci driver, but instead of building on top of emulated PCI this driver is making use of the platform bus together with driver specific callbacks. The virtio platform driver can be seen as a reusable implementation of the lguest virtio driver - in fact, most code is just taken directly from lguest_device.c and reworked to fit the platform device driver abstraction. The first patch breaks out code that can be shared between lguest and the virtio platform driver. This code has been used to implement a mailbox interface between the two processor cores included in the sh7372 SoC. The sh7372 contains o...
2014 Nov 25
2
[PATCH v4 04/42] virtio: disable virtio 1.0 in transports
disable virtio 1.0 in transports that don't support it yet. We will gradually re-enable as support is added. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- drivers/lguest/lguest_device.c | 3 ++- drivers/misc/mic/card/mic_virtio.c | 2 ++ drivers/s390/kvm/virtio_ccw.c | 3 ++- drivers/virtio/virtio_mmio.c | 2 ++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/lguest/lguest_device.c b/drivers/lguest/lguest_device.c index 4d29bcd..4deaf88 1006...
2014 Nov 25
2
[PATCH v4 04/42] virtio: disable virtio 1.0 in transports
disable virtio 1.0 in transports that don't support it yet. We will gradually re-enable as support is added. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- drivers/lguest/lguest_device.c | 3 ++- drivers/misc/mic/card/mic_virtio.c | 2 ++ drivers/s390/kvm/virtio_ccw.c | 3 ++- drivers/virtio/virtio_mmio.c | 2 ++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/lguest/lguest_device.c b/drivers/lguest/lguest_device.c index 4d29bcd..4deaf88 1006...
2011 Nov 15
1
[RFC PATCH net-next v2] enable virtio_net to return bus_info in ethtool -i consistent with emulated NICs
...io_config_ops then modify virtio_net to call through to it in an ethtool .get_drvinfo routine to report bus_info in ethtool -i output which is consistent with other emulated NICs and the output of lspci. Signed-off-by: Rick Jones <rick.jones2 at hp.com> --- The changes to drivers/lguest/lguest_device.c, drivers/s390/kvm/kvm_virtio.c, and drivers/virtio/virtio_mmio.c code inspected only, not compiled. j-ubuntu-guest:~$ ethtool -i eth0 driver: virtio_net version: 1.0.0 firmware-version: bus-info: 0000:00:03.0 raj at raj-ubuntu-guest:~$ lspci | grep Ether 00:03.0 Ethernet controller: Red Hat, In...
2011 Nov 15
1
[RFC PATCH net-next v2] enable virtio_net to return bus_info in ethtool -i consistent with emulated NICs
...io_config_ops then modify virtio_net to call through to it in an ethtool .get_drvinfo routine to report bus_info in ethtool -i output which is consistent with other emulated NICs and the output of lspci. Signed-off-by: Rick Jones <rick.jones2 at hp.com> --- The changes to drivers/lguest/lguest_device.c, drivers/s390/kvm/kvm_virtio.c, and drivers/virtio/virtio_mmio.c code inspected only, not compiled. j-ubuntu-guest:~$ ethtool -i eth0 driver: virtio_net version: 1.0.0 firmware-version: bus-info: 0000:00:03.0 raj at raj-ubuntu-guest:~$ lspci | grep Ether 00:03.0 Ethernet controller: Red Hat, In...
2014 Nov 27
2
[PATCH v6 05/46] virtio: assert 32 bit features in transports
...Since transports generally can't (yet) cope with such bits, add BUG_ON checks to make sure they are not set by mistake. Based on rproc patch by Rusty. Signed-off-by: Rusty Russell <rusty at rustcorp.com.au> Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- drivers/lguest/lguest_device.c | 3 +++ drivers/misc/mic/card/mic_virtio.c | 3 +++ drivers/remoteproc/remoteproc_virtio.c | 3 +++ drivers/s390/kvm/kvm_virtio.c | 3 +++ drivers/s390/kvm/virtio_ccw.c | 3 +++ drivers/virtio/virtio_mmio.c | 3 +++ drivers/virtio/virtio_pci.c |...
2014 Nov 27
2
[PATCH v6 05/46] virtio: assert 32 bit features in transports
...Since transports generally can't (yet) cope with such bits, add BUG_ON checks to make sure they are not set by mistake. Based on rproc patch by Rusty. Signed-off-by: Rusty Russell <rusty at rustcorp.com.au> Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- drivers/lguest/lguest_device.c | 3 +++ drivers/misc/mic/card/mic_virtio.c | 3 +++ drivers/remoteproc/remoteproc_virtio.c | 3 +++ drivers/s390/kvm/kvm_virtio.c | 3 +++ drivers/s390/kvm/virtio_ccw.c | 3 +++ drivers/virtio/virtio_mmio.c | 3 +++ drivers/virtio/virtio_pci.c |...
2009 May 07
6
[PATCH 1/3] virtio: find_vqs/del_vqs virtio operations
...se MSI needs to know the total number of vectors upfront. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- drivers/block/virtio_blk.c | 11 +++--- drivers/char/hw_random/virtio-rng.c | 11 +++--- drivers/char/virtio_console.c | 27 ++++++-------- drivers/lguest/lguest_device.c | 49 +++++++++++++++++++++++++- drivers/net/virtio_net.c | 47 +++++++++++--------------- drivers/s390/kvm/kvm_virtio.c | 64 +++++++++++++++++++++++++++++++++- drivers/virtio/virtio_balloon.c | 31 ++++++++--------- drivers/virtio/virtio_pci.c | 43 ++...
2009 May 07
6
[PATCH 1/3] virtio: find_vqs/del_vqs virtio operations
...se MSI needs to know the total number of vectors upfront. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- drivers/block/virtio_blk.c | 11 +++--- drivers/char/hw_random/virtio-rng.c | 11 +++--- drivers/char/virtio_console.c | 27 ++++++-------- drivers/lguest/lguest_device.c | 49 +++++++++++++++++++++++++- drivers/net/virtio_net.c | 47 +++++++++++--------------- drivers/s390/kvm/kvm_virtio.c | 64 +++++++++++++++++++++++++++++++++- drivers/virtio/virtio_balloon.c | 31 ++++++++--------- drivers/virtio/virtio_pci.c | 43 ++...