Re: [PATCH net-next] selftests/vsock: add initial vmtest.sh for vsock

2025-04-14 Thread Bobby Eshleman
On Fri, Apr 11, 2025 at 10:32:45AM +0200, Stefano Garzarella wrote: > On Thu, Apr 10, 2025 at 06:07:59PM -0700, Bobby Eshleman wrote: > > This commit introduces a new vmtest.sh runner for vsock. > > > > It uses virtme-ng/qemu to run tests in a VM. The tests are designed to

[PATCH net-next] selftests/vsock: add initial vmtest.sh for vsock

2025-04-10 Thread Bobby Eshleman
: $ tools/testing/selftests/vsock/vmtest.sh Signed-off-by: Bobby Eshleman --- MAINTAINERS| 1 + tools/testing/selftests/vsock/.gitignore | 1 + tools/testing/selftests/vsock/config.vsock | 6 + tools/testing/selftests/vsock/vmtest.sh| 247

Re: [PATCH v2 0/3] vsock: add namespace support to vhost-vsock

2025-04-03 Thread Bobby Eshleman
On Thu, Apr 03, 2025 at 11:33:14AM +0200, Stefano Garzarella wrote: > On Wed, Apr 02, 2025 at 03:28:19PM -0700, Bobby Eshleman wrote: > > On Wed, Apr 02, 2025 at 03:18:13PM -0700, Bobby Eshleman wrote: > > > On Wed, Apr 02, 2025 at 10:21:36AM +0100, Daniel P. Berrangé wrote: >

Re: [PATCH v2 0/3] vsock: add namespace support to vhost-vsock

2025-04-02 Thread Bobby Eshleman
On Wed, Apr 02, 2025 at 03:18:13PM -0700, Bobby Eshleman wrote: > On Wed, Apr 02, 2025 at 10:21:36AM +0100, Daniel P. Berrangé wrote: > > On Wed, Apr 02, 2025 at 10:13:43AM +0200, Stefano Garzarella wrote: > > > On Wed, 2 Apr 2025 at 02:21, Bobby Eshleman > > > wrote

Re: [PATCH v2 0/3] vsock: add namespace support to vhost-vsock

2025-04-02 Thread Bobby Eshleman
On Wed, Apr 02, 2025 at 10:21:36AM +0100, Daniel P. Berrangé wrote: > On Wed, Apr 02, 2025 at 10:13:43AM +0200, Stefano Garzarella wrote: > > On Wed, 2 Apr 2025 at 02:21, Bobby Eshleman wrote: > > > > > > I do like Stefano's suggestion to add a sysctl for a &quo

Re: [PATCH v2 0/3] vsock: add namespace support to vhost-vsock

2025-04-01 Thread Bobby Eshleman
On Tue, Apr 01, 2025 at 08:05:16PM +0100, Daniel P. Berrangé wrote: > On Fri, Mar 28, 2025 at 06:03:19PM +0100, Stefano Garzarella wrote: > > CCing Daniel > > > > On Wed, Mar 12, 2025 at 01:59:34PM -0700, Bobby Eshleman wrote: > > > Picking up Stefano's v1 [1]

Re: [PATCH v2 3/3] vhost/vsock: use netns of process that opens the vhost-vsock-netns device

2025-03-28 Thread Bobby Eshleman
On Fri, Mar 28, 2025 at 05:19:44PM +0100, Stefano Garzarella wrote: > On Fri, Mar 28, 2025 at 09:07:22AM -0700, Bobby Eshleman wrote: > > On Thu, Mar 27, 2025 at 10:14:59AM +0100, Stefano Garzarella wrote: > > > On Tue, Mar 25, 2025 at 05:11:49PM -0700, Bobby Eshleman wrote: >

Re: [PATCH v2 0/3] vsock: add namespace support to vhost-vsock

2025-03-28 Thread Bobby Eshleman
On Fri, Mar 28, 2025 at 06:03:19PM +0100, Stefano Garzarella wrote: > CCing Daniel > > On Wed, Mar 12, 2025 at 01:59:34PM -0700, Bobby Eshleman wrote: > > Picking up Stefano's v1 [1], this series adds netns support to > > vhost-vsock. Unlike v1, this series does not

Re: [PATCH v2 3/3] vhost/vsock: use netns of process that opens the vhost-vsock-netns device

2025-03-28 Thread Bobby Eshleman
On Thu, Mar 27, 2025 at 10:14:59AM +0100, Stefano Garzarella wrote: > On Tue, Mar 25, 2025 at 05:11:49PM -0700, Bobby Eshleman wrote: > > On Fri, Mar 21, 2025 at 11:02:34AM +0100, Stefano Garzarella wrote: > > > On Thu, Mar 20, 2025 at 02:05:38PM -0700, Bobby Eshleman wrote: >

Re: [PATCH v2 3/3] vhost/vsock: use netns of process that opens the vhost-vsock-netns device

2025-03-25 Thread Bobby Eshleman
On Fri, Mar 21, 2025 at 11:02:34AM +0100, Stefano Garzarella wrote: > On Thu, Mar 20, 2025 at 02:05:38PM -0700, Bobby Eshleman wrote: > > On Thu, Mar 20, 2025 at 10:08:02AM +0100, Stefano Garzarella wrote: > > > On Wed, Mar 19, 2025 at 10:09:44PM +0100, Paolo Abeni wrote: >

Re: [PATCH v2 0/3] vsock: add namespace support to vhost-vsock

2025-03-21 Thread Bobby Eshleman
On Fri, Mar 21, 2025 at 03:49:38PM -0400, Michael S. Tsirkin wrote: > On Wed, Mar 12, 2025 at 01:59:34PM -0700, Bobby Eshleman wrote: > > Picking up Stefano's v1 [1], this series adds netns support to > > vhost-vsock. Unlike v1, this series does not address guest-to-host

Re: [PATCH v2 3/3] vhost/vsock: use netns of process that opens the vhost-vsock-netns device

2025-03-21 Thread Bobby Eshleman
On Fri, Mar 21, 2025 at 11:02:34AM +0100, Stefano Garzarella wrote: > On Thu, Mar 20, 2025 at 02:05:38PM -0700, Bobby Eshleman wrote: > > On Thu, Mar 20, 2025 at 10:08:02AM +0100, Stefano Garzarella wrote: > > > On Wed, Mar 19, 2025 at 10:09:44PM +0100, Paolo Abeni wrote: >

Re: [PATCH v2 3/3] vhost/vsock: use netns of process that opens the vhost-vsock-netns device

2025-03-20 Thread Bobby Eshleman
On Thu, Mar 20, 2025 at 10:08:02AM +0100, Stefano Garzarella wrote: > On Wed, Mar 19, 2025 at 10:09:44PM +0100, Paolo Abeni wrote: > > On 3/12/25 9:59 PM, Bobby Eshleman wrote: > > > @@ -753,6 +783,8 @@ static int vhost_vsock_dev_release(struct inode > > >

Re: [PATCH v2 3/3] vhost/vsock: use netns of process that opens the vhost-vsock-netns device

2025-03-20 Thread Bobby Eshleman
On Wed, Mar 19, 2025 at 10:09:44PM +0100, Paolo Abeni wrote: > On 3/12/25 9:59 PM, Bobby Eshleman wrote: > > @@ -753,6 +783,8 @@ static int vhost_vsock_dev_release(struct inode *inode, > > struct file *file) > > virtio_vsock_skb_queue_purge(&

Re: [PATCH v2 1/3] vsock: add network namespace support

2025-03-20 Thread Bobby Eshleman
On Thu, Mar 20, 2025 at 09:57:57AM +0100, Stefano Garzarella wrote: > On Wed, Mar 19, 2025 at 12:00:38PM -0700, Bobby Eshleman wrote: > > On Wed, Mar 19, 2025 at 02:02:32PM +0100, Stefano Garzarella wrote: > > > On Wed, Mar 12, 2025 at 01:59:35PM -0700, Bobby Eshleman wrote: >

Re: [PATCH v2 3/3] vhost/vsock: use netns of process that opens the vhost-vsock-netns device

2025-03-19 Thread Bobby Eshleman
On Wed, Mar 19, 2025 at 03:15:36PM +0100, Stefano Garzarella wrote: > On Wed, Mar 12, 2025 at 01:59:37PM -0700, Bobby Eshleman wrote: > > From: Stefano Garzarella > > > > This patch assigns the network namespace of the process that opened > > vhost-vsock-netns devic

Re: [PATCH v2 2/3] vsock/virtio_transport_common: handle netns of received packets

2025-03-19 Thread Bobby Eshleman
On Wed, Mar 19, 2025 at 02:26:04PM +0100, Stefano Garzarella wrote: > On Wed, Mar 12, 2025 at 01:59:36PM -0700, Bobby Eshleman wrote: > > From: Stefano Garzarella > > > > This patch allows transports that use virtio_transport_common > > to specify the network namespace

Re: [PATCH v2 1/3] vsock: add network namespace support

2025-03-19 Thread Bobby Eshleman
On Wed, Mar 19, 2025 at 02:02:32PM +0100, Stefano Garzarella wrote: > On Wed, Mar 12, 2025 at 01:59:35PM -0700, Bobby Eshleman wrote: > > From: Stefano Garzarella > > > > This patch adds a check of the "net" assigned to a socket during > &

Re: [PATCH v2 0/3] vsock: add namespace support to vhost-vsock

2025-03-13 Thread Bobby Eshleman
On Thu, Mar 13, 2025 at 04:37:16PM +0100, Stefano Garzarella wrote: > Hi Bobby, > first of all, thank you for starting this work again! > You're welcome, thank you for your work getting it started! > On Wed, Mar 12, 2025 at 07:28:33PM -0700, Bobby Eshleman wrote: > > Hey

Re: [PATCH v2 0/3] vsock: add namespace support to vhost-vsock

2025-03-12 Thread Bobby Eshleman
Hey all, Apologies for forgetting the 'net-next' prefix on this one. Should I resend or no? Best, Bobby On Wed, Mar 12, 2025 at 01:59:34PM -0700, Bobby Eshleman wrote: > Picking up Stefano's v1 [1], this series adds netns support to > vhost-vsock. Unlike v1, this series d

Re: [PATCH net-next 0/3] vsock: support network namespace

2025-03-12 Thread Bobby Eshleman
On Tue, Mar 11, 2025 at 08:59:44AM +0800, Jason Wang wrote: > On Tue, Mar 11, 2025 at 4:14 AM Bobby Eshleman > wrote: > > > > On Wed, Mar 05, 2025 at 01:46:54PM +0800, Jason Wang wrote: > > > On Wed, Mar 5, 2025 at 8:39 AM Bobby Eshleman > > > wrote: > &

[PATCH v2 3/3] vhost/vsock: use netns of process that opens the vhost-vsock-netns device

2025-03-12 Thread Bobby Eshleman
VMs, running in different network namespace, with the same CID/port. This patch brings namespace support only to vhost-vsock, but not to virtio-vsock, hyperv, or vmci. Signed-off-by: Stefano Garzarella Signed-off-by: Bobby Eshleman --- v1 -> v2 * removed 'netns' module par

[PATCH v2 1/3] vsock: add network namespace support

2025-03-12 Thread Bobby Eshleman
serves old behavior, and does not yet bring up namespace support fully. Signed-off-by: Stefano Garzarella Signed-off-by: Bobby Eshleman --- v1 -> v2: * remove 'netns' module param * remove vsock_net_eq() * use vsock_global_net() for "global" namespace * use fallback logic i

[PATCH v2 2/3] vsock/virtio_transport_common: handle netns of received packets

2025-03-12 Thread Bobby Eshleman
Garzarella Signed-off-by: Bobby Eshleman --- V1 -> V2 * use vsock_global_net() * add net to skb->cb * forward port for skb --- drivers/vhost/vsock.c | 1 + include/linux/virtio_vsock.h| 2 ++ net/vmw_vsock/virtio_transport.c| 1 + net/vmw

[PATCH v2 0/3] vsock: add namespace support to vhost-vsock

2025-03-12 Thread Bobby Eshleman
st cid: Address already in use Signed-off-by: Bobby Eshleman --- Changes in v2: - only support vhost-vsock namespaces - all g2h namespaces retain old behavior, only common API changes impacted by vhost-vsock changes - add /dev/vhost-vsock-netns for "opt-in" - leave /dev/vhost-vsock to old

Re: [PATCH net-next 0/3] vsock: support network namespace

2025-03-10 Thread Bobby Eshleman
On Wed, Mar 05, 2025 at 01:46:54PM +0800, Jason Wang wrote: > On Wed, Mar 5, 2025 at 8:39 AM Bobby Eshleman wrote: > > > > On Tue, Apr 28, 2020 at 06:00:52PM +0200, Stefano Garzarella wrote: > > > On Tue, Apr 28, 2020 at 04:13:22PM +0800, Jason Wang wrote: > > >

Re: [PATCH net-next 1/3] vsock: add network namespace support

2025-03-05 Thread Bobby Eshleman
On Wed, Mar 05, 2025 at 05:07:13PM +0100, Stefano Garzarella wrote: > On Wed, 5 Mar 2025 at 16:55, Bobby Eshleman wrote: > > > > Do you know of any use cases for guest-side vsock netns? > > Yep, as I mentioned in another mail this morning, the use case is > nested VMs

Re: [PATCH net-next 0/3] vsock: support network namespace

2025-03-05 Thread Bobby Eshleman
On Wed, Mar 05, 2025 at 10:42:58AM +0100, Stefano Garzarella wrote: > On Tue, Mar 04, 2025 at 04:06:02PM -0800, Bobby Eshleman wrote: > > On Thu, Jan 16, 2020 at 06:24:25PM +0100, Stefano Garzarella wrote: > > > > One question: what is the behavior we expect from guest namesp

Re: [PATCH net-next 0/3] vsock: support network namespace

2025-03-05 Thread Bobby Eshleman
On Wed, Mar 05, 2025 at 10:30:17AM +0100, Stefano Garzarella wrote: > On Wed, Mar 05, 2025 at 02:27:12AM -0500, Michael S. Tsirkin wrote: > > On Tue, Mar 04, 2025 at 04:39:02PM -0800, Bobby Eshleman wrote: > > > I think it might be a lot of complexity to bring into the picture

Re: [PATCH net-next 1/3] vsock: add network namespace support

2025-03-05 Thread Bobby Eshleman
On Wed, Mar 05, 2025 at 10:23:08AM +0100, Stefano Garzarella wrote: > On Wed, 5 Mar 2025 at 08:32, Michael S. Tsirkin wrote: > > [...] > > > > > > I'm not sure I understand the usecase. Can you explain a bit more, > > please? > > It's been five years, but I'm trying! > We are tracking this RFE

Re: [PATCH net-next 0/3] vsock: support network namespace

2025-03-04 Thread Bobby Eshleman
On Tue, Apr 28, 2020 at 06:00:52PM +0200, Stefano Garzarella wrote: > On Tue, Apr 28, 2020 at 04:13:22PM +0800, Jason Wang wrote: > > > > > > As we've discussed, it should be a netdev probably in either guest or host > > side. And it would be much simpler if we want do implement namespace then. >

Re: [PATCH net-next 0/3] vsock: support network namespace

2025-03-04 Thread Bobby Eshleman
On Thu, Jan 16, 2020 at 06:24:25PM +0100, Stefano Garzarella wrote: > RFC -> v1: > * added 'netns' module param to vsock.ko to enable the >network namespace support (disabled by default) > * added 'vsock_net_eq()' to check the "net" assigned to a socket >only when 'netns' support is enabl

[virtio-dev] Re: [PATCH] virtio-vsock: add VIRTIO_VSOCK_F_DGRAM feature bit

2023-09-06 Thread Bobby Eshleman
On Wed, Sep 06, 2023 at 04:28:12PM +0200, Stefano Garzarella wrote: > On Sat, Sep 02, 2023 at 04:35:25AM -0400, Michael S. Tsirkin wrote: > > On Sat, Sep 02, 2023 at 04:56:42AM +0000, Bobby Eshleman wrote: > > > On Fri, Sep 01, 2023 at 02:45:14PM +0200, Stefano Garzarella wro

Re: [virtio-dev] Re: [PATCH] virtio-vsock: add VIRTIO_VSOCK_F_DGRAM feature bit

2023-09-06 Thread Bobby Eshleman
On Wed, Sep 06, 2023 at 04:17:59AM -0400, Michael S. Tsirkin wrote: > On Sat, Sep 02, 2023 at 09:24:26AM +0000, Bobby Eshleman wrote: > > On Sat, Sep 02, 2023 at 04:41:28AM -0400, Michael S. Tsirkin wrote: > > > On Sat, Sep 02, 2023 at 04:37:19AM +0000, Bobby Eshleman wrote: >

[virtio-dev] Re: [PATCH] virtio-vsock: add VIRTIO_VSOCK_F_DGRAM feature bit

2023-09-05 Thread Bobby Eshleman
On Sat, Sep 02, 2023 at 04:35:25AM -0400, Michael S. Tsirkin wrote: > On Sat, Sep 02, 2023 at 04:56:42AM +0000, Bobby Eshleman wrote: > > On Fri, Sep 01, 2023 at 02:45:14PM +0200, Stefano Garzarella wrote: > > > On Tue, Aug 29, 2023 at 09:29:45PM +0000, Bobby Eshleman wrote:

[virtio-dev] Re: [PATCH] virtio-vsock: add VIRTIO_VSOCK_F_DGRAM feature bit

2023-09-05 Thread Bobby Eshleman
On Sat, Sep 02, 2023 at 04:41:28AM -0400, Michael S. Tsirkin wrote: > On Sat, Sep 02, 2023 at 04:37:19AM +0000, Bobby Eshleman wrote: > > On Fri, Sep 01, 2023 at 09:31:03AM -0400, Michael S. Tsirkin wrote: > > > On Wed, Aug 30, 2023 at 12:43:03AM +0000, Bobby Eshleman wrote: >

[virtio-dev] Re: [PATCH] virtio-vsock: add VIRTIO_VSOCK_F_DGRAM feature bit

2023-09-01 Thread Bobby Eshleman
On Fri, Sep 01, 2023 at 02:45:14PM +0200, Stefano Garzarella wrote: > On Tue, Aug 29, 2023 at 09:29:45PM +0000, Bobby Eshleman wrote: > > This adds support for datagrams to the virtio-vsock device. > > > > virtio-vsock already supports stream and seqpacket types. The exist

[virtio-dev] Re: [PATCH] virtio-vsock: add VIRTIO_VSOCK_F_DGRAM feature bit

2023-09-01 Thread Bobby Eshleman
On Fri, Sep 01, 2023 at 09:31:03AM -0400, Michael S. Tsirkin wrote: > On Wed, Aug 30, 2023 at 12:43:03AM +0000, Bobby Eshleman wrote: > > On Tue, Aug 29, 2023 at 06:21:35PM -0400, Michael S. Tsirkin wrote: > > > On Tue, Aug 29, 2023 at 09:29:45PM +0000, Bobby Eshleman wrote:

[virtio-dev] Re: [PATCH] virtio-vsock: add VIRTIO_VSOCK_F_DGRAM feature bit

2023-08-29 Thread Bobby Eshleman
On Tue, Aug 29, 2023 at 06:21:35PM -0400, Michael S. Tsirkin wrote: > On Tue, Aug 29, 2023 at 09:29:45PM +0000, Bobby Eshleman wrote: > > This adds support for datagrams to the virtio-vsock device. > > > > virtio-vsock already supports stream and seqpacket types. The exist

Re: [PATCH v9 5/5] xen/riscv: remove dummy_bss variable

2023-05-30 Thread Bobby Eshleman
t; __aligned(STACK_SIZE); > > -/* > - * To be sure that .bss isn't zero. It will simplify code of > - * .bss initialization. > - * TODO: > - * To be deleted when the first real .bss user appears > - */ > -int dummy_bss __attribute__((unused)); > - > void __init noreturn start_xen(unsigned long bootcpu_id, > paddr_t dtb_addr) > { > -- > 2.40.1 > > Acked-by: Bobby Eshleman

Re: [PATCH v9 2/5] xen/riscv: introduce setup_initial_pages

2023-05-30 Thread Bobby Eshleman
d update CSR_STVEC with it. > + * MMU is configured in a way where linker addresses are mapped > + * on load addresses so in a case when linker addresses are not equal > + * to load addresses, after MMU is enabled, it will cause > + * an exception and jump to linker time addresses. > + * Otherwise if load addresses are equal to linker addresses the code > + * after mmu_is_enabled label will be executed without exception. > + */ > +csr_write(CSR_STVEC, LOAD_TO_LINK((unsigned long)&&mmu_is_enabled)); > + > +/* Ensure page table writes precede loading the SATP */ > +sfence_vma(); > + > +/* Enable the MMU and load the new pagetable for Xen */ > +csr_write(CSR_SATP, > + PFN_DOWN((unsigned long)stage1_pgtbl_root) | > + RV_STAGE1_MODE << SATP_MODE_SHIFT); > + > +asm volatile ( ".p2align 2" ); > + mmu_is_enabled: > +/* > + * Stack should be re-inited as: > + * 1. Right now an address of the stack is relative to load time > + *addresses what will cause an issue in case of load start address > + *isn't equal to linker start address. > + * 2. Addresses in stack are all load time relative which can be an > + *issue in case when load start address isn't equal to linker > + *start address. > + * > + * We can't return to the caller because the stack was reseted > + * and it may have stash some variable on the stack. > + * Jump to a brand new function as the stack was reseted > + */ > + > +switch_stack_and_jump((unsigned long)cpu0_boot_stack + STACK_SIZE, > + cont_after_mmu_is_enabled); > +} > + > diff --git a/xen/arch/riscv/setup.c b/xen/arch/riscv/setup.c > index 3786f337e0..315804aa87 100644 > --- a/xen/arch/riscv/setup.c > +++ b/xen/arch/riscv/setup.c > @@ -2,6 +2,7 @@ > #include > > #include > +#include > > /* Xen stack for bringing up the first CPU. */ > unsigned char __initdata cpu0_boot_stack[STACK_SIZE] > @@ -26,3 +27,13 @@ void __init noreturn start_xen(unsigned long bootcpu_id, > > unreachable(); > } > + > +void __init noreturn cont_after_mmu_is_enabled(void) > +{ > +early_printk("All set up\n"); > + > +for ( ;; ) > +asm volatile ("wfi"); > + > +unreachable(); > +} > diff --git a/xen/arch/riscv/xen.lds.S b/xen/arch/riscv/xen.lds.S > index 31e0d3576c..fe475d096d 100644 > --- a/xen/arch/riscv/xen.lds.S > +++ b/xen/arch/riscv/xen.lds.S > @@ -172,3 +172,6 @@ ASSERT(IS_ALIGNED(__bss_end,POINTER_ALIGN), > "__bss_end is misaligned") > > ASSERT(!SIZEOF(.got), ".got non-empty") > ASSERT(!SIZEOF(.got.plt), ".got.plt non-empty") > + > +ASSERT(_end - _start <= MB(2), "Xen too large for early-boot assumptions") > + > -- > 2.40.1 > > LGTM. Nice code to boot! Acked-by: Bobby Eshleman

Re: [PATCH v9 3/5] xen/riscv: align __bss_start

2023-05-30 Thread Bobby Eshleman
. = ALIGN(POINTER_ALIGN); > __bss_start = .; > *(.bss.stack_aligned) > -. = ALIGN(PAGE_SIZE); > *(.bss.page_aligned) > . = ALIGN(PAGE_SIZE); > __per_cpu_start = .; > -- > 2.40.1 > > Acked-by: Bobby Eshleman

Re: [PATCH v9 4/5] xen/riscv: setup initial pagetables

2023-05-30 Thread Bobby Eshleman
/arch/riscv/setup.c > +++ b/xen/arch/riscv/setup.c > @@ -21,7 +21,10 @@ void __init noreturn start_xen(unsigned long bootcpu_id, > { > early_printk("Hello from C env\n"); > > -early_printk("All set up\n"); > +setup_initial_pagetables(); > + > +enable_mmu(); > + > for ( ;; ) > asm volatile ("wfi"); > > -- > 2.40.1 > > Acked-by: Bobby Eshleman

Re: [PATCH v9 1/5] xen/riscv: add VM space layout

2023-05-30 Thread Bobby Eshleman
... | 194 GB | L2 0 - 193 | Unused > + * > > + * > +#endif > + */ > + > #if defined(CONFIG_RISCV_64) > # define LONG_BYTEORDER 3 > # define ELFSIZE 64 > -- > 2.40.1 > > Acked-by: Bobby Eshleman

[virtio-dev] Re: [PATCH RFC net-next v2 0/4] virtio/vsock: support datagrams

2023-04-28 Thread Bobby Eshleman
On Fri, Apr 28, 2023 at 12:43:09PM +0200, Stefano Garzarella wrote: > On Sat, Apr 15, 2023 at 07:13:47AM +0000, Bobby Eshleman wrote: > > CC'ing virtio-dev@lists.oasis-open.org because this thread is starting > > to touch the spec. > > > > On Wed, Apr 19, 2

[virtio-dev] Re: [PATCH RFC net-next v2 0/4] virtio/vsock: support datagrams

2023-04-19 Thread Bobby Eshleman
CC'ing virtio-dev@lists.oasis-open.org because this thread is starting to touch the spec. On Wed, Apr 19, 2023 at 12:00:17PM +0200, Stefano Garzarella wrote: > Hi Bobby, > > On Fri, Apr 14, 2023 at 11:18:40AM +, Bobby Eshleman wrote: > > CC'ing Cong. > > &g

Re: [PATCH v3 3/3] xen/riscv: initialize .bss section

2023-03-16 Thread Bobby Eshleman
ODO: > + * To be deleted when the first real .bss user appears > + */ > +int dummy_bss __attribute__((unused)); > + > void __init noreturn start_xen(unsigned long bootcpu_id, > unsigned long dtb_base) > { > -- > 2.39.0 > > Reviewed-by: Bobby Eshleman

Re: [PATCH v3 2/3] xen/riscv: read/save hart_id and dtb_base passed by bootloader

2023-03-16 Thread Bobby Eshleman
ot_stack[STACK_SIZE] > __aligned(STACK_SIZE); > > -void __init noreturn start_xen(void) > +void __init noreturn start_xen(unsigned long bootcpu_id, > + unsigned long dtb_base) > { > early_printk("Hello from C env\n"); > > -- > 2.39.0 > > Reviewed-by: Bobby Eshleman

Re: [PATCH v3 1/3] xen/riscv: disable fpu

2023-03-16 Thread Bobby Eshleman
t0, STACK_SIZE > add sp, sp, t0 > -- > 2.39.0 > > My last email had the wrong trailer: Reviewed-by: Bobby Eshleman

Re: [PATCH v3 1/3] xen/riscv: disable fpu

2023-03-16 Thread Bobby Eshleman
t0, STACK_SIZE > add sp, sp, t0 > -- > 2.39.0 > > Acked-by: Bobby Eshleman

Re: [PATCH v1] xen/riscv: make calculation of stack address PC-relative

2023-03-14 Thread Bobby Eshleman
F_POINTER__ > bltut3, t4, .L_clear_bss > > -la sp, cpu0_boot_stack > +lla sp, cpu0_boot_stack > li t0, STACK_SIZE > add sp, sp, t0 > > -- > 2.39.2 > > Reviewed-by: Bobby Eshleman

Re: [PATCH v3 0/3] Do basic initialization things

2023-03-04 Thread Bobby Eshleman
I just wanted to let you know I have this queued up to review, I’ve just been very overloaded. I’ll give these a review in the coming week. Best, Bobby On Fri, Mar 3, 2023 at 2:24 AM Oleksii Kurochko wrote: > The patch series groups and updates the following patches: > 1. xen/riscv: disable fpu

Re: [PATCH v7 1/2] xen/riscv: introduce early_printk basic stuff

2023-02-01 Thread Bobby Eshleman
On Wed, Feb 01, 2023 at 09:06:21AM +, Julien Grall wrote: > Hi Andrew, > > On 01/02/2023 00:21, Andrew Cooper wrote: > > On 31/01/2023 11:17 pm, Alistair Francis wrote: > > > On Tue, Jan 31, 2023 at 10:03 PM Julien Grall wrote: > > > > On 31/01/2023 11:44, Alistair Francis wrote: > > > > > On

Re: [RISC-V] Switch to H-mode

2023-01-23 Thread Bobby Eshleman
On Mon, Jan 23, 2023 at 11:09:13PM +, Andrew Cooper wrote: > On 19/01/2023 1:05 pm, Bobby Eshleman wrote: > > On Mon, Jan 23, 2023 at 06:56:19PM +0200, Oleksii wrote: > >> Hi Alistair and community, > >> > >> I am working on RISC-V support upstream for Xen

Re: [RISC-V] Switch to H-mode

2023-01-23 Thread Bobby Eshleman
On Mon, Jan 23, 2023 at 06:56:19PM +0200, Oleksii wrote: > Hi Alistair and community, > > I am working on RISC-V support upstream for Xen based on your and Bobby > patches. > > Adding the RISC-V support I realized that Xen is ran in S-mode. Output > of OpenSBI: > ... > Domain0 Next Mode

Re: [PATCH v4 3/4] xen/riscv: introduce early_printk basic stuff

2023-01-17 Thread Bobby Eshleman
basic stuff of early_printk functionality > which will be enough to print 'hello from C environment". > > Originally early_printk.{c,h} was introduced by Bobby Eshleman > (https://github.com/glg-rv/xen/commit/a3c9916bbdff7ad6030055bbee7e53d1aab71384) > but some functionality wa

Re: [PATCH v4 2/4] xen/riscv: introduce sbi call to putchar to console

2023-01-17 Thread Bobby Eshleman
On Mon, Jan 16, 2023 at 04:39:30PM +0200, Oleksii Kurochko wrote: > From: Bobby Eshleman > > Originally SBI implementation for Xen was introduced by > Bobby Eshleman but it was removed > all the stuff for simplicity except SBI call for putting > character to console. > &

Re: [PATCH v2 6/8] xen/riscv: introduce early_printk basic stuff

2023-01-09 Thread Bobby Eshleman
> > obj-y += sbi.o > > obj-y += setup.o > > diff --git a/xen/arch/riscv/early_printk.c > b/xen/arch/riscv/early_printk.c > > new file mode 100644 > > index 00..88da5169ed > > --- /dev/null > > +++ b/xen/arch/riscv/early_printk.c > >

Re: [PATCH v1 4/8] xen/riscv: introduce sbi call to putchar to console

2023-01-06 Thread Bobby Eshleman
On Fri, Jan 06, 2023 at 05:16:31PM +, Andrew Cooper wrote: > On 20/12/2022 6:23 am, Bobby Eshleman wrote: > > On Fri, Jan 06, 2023 at 03:14:25PM +0200, Oleksii Kurochko wrote: > >> The patch introduce sbi_putchar() SBI call which is necessary > >> to implement init

Re: [PATCH v1 4/8] xen/riscv: introduce sbi call to putchar to console

2023-01-06 Thread Bobby Eshleman
; +++ b/xen/arch/riscv/include/asm/sbi.h > @@ -0,0 +1,34 @@ > +/* SPDX-License-Identifier: (GPL-2.0-or-later) */ > +/* > + * Copyright (c) 2021 Vates SAS. > + * > + * Taken from xvisor, modified by Bobby Eshleman (bobby.eshle...@gmail.com). > + * > + * Taken/modified from Xv

Re: [XEN v3] Xen: Ensure "xenheap_bits - PAGE_SHIFT" can be used as a rhs operand of shift operator

2022-12-02 Thread Bobby Eshleman
On Fri, Dec 02, 2022 at 12:56:06PM +, Andrew Cooper wrote: > On 02/12/2022 12:35, Ayan Kumar Halder wrote: > > Currently this change will not have any impact on the existing > > architectures. > > The following table illustrates PADDR_BITS vs BITS_PER_LONG of different > > archs > > > > -

Re: [virtio-dev] Re: [PATCH 5/6] virtio/vsock: add support for dgram

2022-08-18 Thread Bobby Eshleman
On Thu, Aug 18, 2022 at 08:35:48AM +, Arseniy Krasnov wrote: > On Tue, 2022-08-16 at 09:58 +0000, Bobby Eshleman wrote: > > On Wed, Aug 17, 2022 at 05:42:08AM +, Arseniy Krasnov wrote: > > > On 17.08.2022 08:01, Arseniy Krasnov wrote: > > > > On 16.08.20

Re: [virtio-dev] Re: [PATCH 5/6] virtio/vsock: add support for dgram

2022-08-17 Thread Bobby Eshleman
On Wed, Aug 17, 2022 at 05:42:08AM +, Arseniy Krasnov wrote: > On 17.08.2022 08:01, Arseniy Krasnov wrote: > > On 16.08.2022 05:32, Bobby Eshleman wrote: > >> CC'ing virtio-dev@lists.oasis-open.org > >> > >> On Mon, Aug 15, 2022 at 10:56:08AM -070

Re: [virtio-dev] Re: [PATCH 5/6] virtio/vsock: add support for dgram

2022-08-17 Thread Bobby Eshleman
On Wed, Aug 17, 2022 at 05:01:00AM +, Arseniy Krasnov wrote: > On 16.08.2022 05:32, Bobby Eshleman wrote: > > CC'ing virtio-dev@lists.oasis-open.org > > > > On Mon, Aug 15, 2022 at 10:56:08AM -0700, Bobby Eshleman wrote: > >> This patch supports dgram in vi

[virtio-dev] Re: [PATCH 6/6] vsock_test: add tests for vsock dgram

2022-08-16 Thread Bobby Eshleman
CC'ing virtio-dev@lists.oasis-open.org On Mon, Aug 15, 2022 at 10:56:09AM -0700, Bobby Eshleman wrote: > From: Jiang Wang > > Added test cases for vsock dgram types. > > Signed-off-by: Jiang Wang > --- > tools/testing/vsock/util.c | 105 + >

[virtio-dev] Re: [PATCH 5/6] virtio/vsock: add support for dgram

2022-08-16 Thread Bobby Eshleman
CC'ing virtio-dev@lists.oasis-open.org On Mon, Aug 15, 2022 at 10:56:08AM -0700, Bobby Eshleman wrote: > This patch supports dgram in virtio and on the vhost side. > > Signed-off-by: Jiang Wang > Signed-off-by: Bobby Eshleman > --- > drivers/vhost/vsock.c

[virtio-dev] Re: [PATCH 4/6] virtio/vsock: add VIRTIO_VSOCK_F_DGRAM feature bit

2022-08-16 Thread Bobby Eshleman
CC'ing virtio-dev@lists.oasis-open.org On Mon, Aug 15, 2022 at 10:56:07AM -0700, Bobby Eshleman wrote: > This commit adds a feature bit for virtio vsock to support datagrams. > > Signed-off-by: Jiang Wang > Signed-off-by: Bobby Eshleman > --- > drivers/vhost/

[virtio-dev] Re: [PATCH 3/6] vsock: add netdev to vhost/virtio vsock

2022-08-16 Thread Bobby Eshleman
CC'ing virtio-dev@lists.oasis-open.org On Mon, Aug 15, 2022 at 10:56:06AM -0700, Bobby Eshleman wrote: > In order to support usage of qdisc on vsock traffic, this commit > introduces a struct net_device to vhost and virtio vsock. > > Two new devices are created, vhost-vsock for

[virtio-dev] Re: [PATCH 2/6] vsock: return errors other than -ENOMEM to socket

2022-08-16 Thread Bobby Eshleman
CC'ing virtio-dev@lists.oasis-open.org On Mon, Aug 15, 2022 at 10:56:05AM -0700, Bobby Eshleman wrote: > This commit allows vsock implementations to return errors > to the socket layer other than -ENOMEM. One immediate effect > of this is that upon the sk_sndbuf threshold being r

[virtio-dev] Re: [PATCH 1/6] vsock: replace virtio_vsock_pkt with sk_buff

2022-08-16 Thread Bobby Eshleman
CC'ing virtio-dev@lists.oasis-open.org On Mon, Aug 15, 2022 at 10:56:04AM -0700, Bobby Eshleman wrote: > This patch replaces virtio_vsock_pkt with sk_buff. > > The benefit of this series includes: > > * The bug reported @ https://bugzilla.redhat.com/show_bug.cgi?id=2009935

[virtio-dev] Re: [PATCH 0/6] virtio/vsock: introduce dgrams, sk_buff, and qdisc

2022-08-16 Thread Bobby Eshleman
CC'ing virtio-dev@lists.oasis-open.org On Mon, Aug 15, 2022 at 10:56:03AM -0700, Bobby Eshleman wrote: > Hey everybody, > > This series introduces datagrams, packet scheduling, and sk_buff usage > to virtio vsock. > > The usage of struct sk_buff benefits users by a)

Re: Arch-neutral name for hardware interrupt support

2021-11-01 Thread Bobby Eshleman
On Mon, Nov 01, 2021 at 10:47:26AM +, Andrew Cooper wrote: > Hello, > > On ARM, the GIC is a hard prerequisite for VMs. > > I can't remember what the state of RISCV is, but IIRC there is still > some debate over how interrupts are expected to work under virt. > Yes sir, that addition to the

[PATCH v4 6/6] x86: change asm/debugger.h to xen/debugger.h

2021-09-28 Thread Bobby Eshleman
no longer required, arm/debugger.h is removed. Signed-off-by: Bobby Eshleman --- Changes in v4: - Replace #include with `struct cpu_user_regs` xen/arch/x86/traps.c | 1 + xen/common/domain.c| 2 +- xen/common/gdbstub.c | 2 +- xen/common/keyhandler.c

[PATCH v4 5/6] arch/x86: move domain_pause_for_debugger() to domain.h

2021-09-28 Thread Bobby Eshleman
domain_pause_for_debugger() was previously in debugger.h. This commit moves it to domain.h because its implementation is in domain.c. Signed-off-by: Bobby Eshleman --- Changes in v3: - domain_pause_for_debugger() is now moved into debugger.h, not a new file debugger.c Changes in v4: - Don&#

[PATCH v4 4/6] x86/gdbsx: expand dbg_rw_mem() inline

2021-09-28 Thread Bobby Eshleman
Because dbg_rw_mem() has only a single call site, this commit expands it inline. Signed-off-by: Bobby Eshleman --- Changes in v4: - Add DCO xen/arch/x86/gdbsx.c | 30 +- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/xen/arch/x86/gdbsx.c b/xen/arch

[PATCH v4 3/6] arch/x86: rename debug.c to gdbsx.c

2021-09-28 Thread Bobby Eshleman
adds a stub that would preserve the functioning of that call site if the #ifdef CONFIG_GDBSX were to ever be removed or the function were to ever be called outside of such an ifdef block. Signed-off-by: Bobby Eshleman --- Changes in v4: - Alphebetize Makefile addition - Fix broken header guard

[PATCH v4 2/6] x86/debugger: separate Xen and guest debugging debugger_trap_* functions

2021-09-28 Thread Bobby Eshleman
ut of debugger_trap_entry() are removed completely (when the trapnr is not int3/debug). This commit is one of a series geared towards removing the unnecessary requirement that all architectures to implement . Signed-off-by: Bobby Eshleman --- Changes in v4: - Reword commit message for accuracy

[PATCH v4 1/6] arm/traps: remove debugger_trap_fatal() calls

2021-09-28 Thread Bobby Eshleman
ARM doesn't actually use debugger_trap_* anything, and is stubbed out. This commit simply removes the unneeded calls. Signed-off-by: Bobby Eshleman --- xen/arch/arm/traps.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c index 4ccb6

[PATCH v4 0/6] Remove unconditional arch dependency on asm/debugger.h

2021-09-28 Thread Bobby Eshleman
when !CONFIG_CRASH_DEBUG - Adds stronger separation between gdbstub, gdbsx, and generic debugger code. v4 simply includes the review feedback from v3 with no other big changes (as was the case for v3 in comparison to v2). Bobby Eshleman (6): arm/traps: remove debugger_trap_fatal() calls x86/deb

Re: [PATCH v3 3/6] arch/x86: rename debug.c to gdbsx.c

2021-08-24 Thread Bobby Eshleman
On Tue, Aug 24, 2021, 2:20 PM Jan Beulich wrote: > On 18.08.2021 22:29, Bobby Eshleman wrote: > > --- /dev/null > > +++ b/xen/include/asm-x86/gdbsx.h > > @@ -0,0 +1,17 @@ > > +#ifndef __X86_GDBX_H > > +#define __X86_GDBX_H__ > > + > > +#ifdef C

[PATCH v3 6/6] x86: change asm/debugger.h to xen/debugger.h

2021-08-18 Thread Bobby Eshleman
no longer required, arm/debugger.h is removed. Signed-off-by: Bobby Eshleman --- Changes in v3: - No longer introduces a fake TRAP_invalid_op for arm to consume, it is not necessary given the removal of the arm calls now precedes this patch. - Instead of defining prototypes that arch/ is

[PATCH v3 5/6] arch/x86: move domain_pause_for_debugger() to domain.h

2021-08-18 Thread Bobby Eshleman
domain_pause_for_debugger() was previously in debugger.h. This commit moves it to domain.h because its implementation is in domain.c. Signed-off-by: Bobby Eshleman --- Changes in v3: - domain_pause_for_debugger() is now moved into debugger.h, not a new file debugger.c xen/arch/x86/hvm/svm

[PATCH v3 2/6] x86/debugger: separate Xen and guest debugging debugger_trap_* functions

2021-08-18 Thread Bobby Eshleman
ssary requirement that all architectures to implement . Signed-off-by: Bobby Eshleman --- xen/arch/x86/domain.c | 2 +- xen/arch/x86/traps.c | 48 -- xen/include/asm-x86/debugger.h | 42 ++--- 3 files changed, 31 insertions(+

[PATCH v3 3/6] arch/x86: rename debug.c to gdbsx.c

2021-08-18 Thread Bobby Eshleman
adds a stub that would preserve the functioning of that call site if the #ifdef CONFIG_GDBSX were to ever be removed or the function were to ever be called outside of such an ifdef block. Signed-off-by: Bobby Eshleman --- xen/arch/x86/Makefile | 2 +- xen/arch/x86/domctl.c

[PATCH v3 4/6] x86/gdbsx: expand dbg_rw_mem() inline

2021-08-18 Thread Bobby Eshleman
Because dbg_rw_mem() has only a single call site, this commit expands it inline. --- xen/arch/x86/gdbsx.c | 32 +++- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/xen/arch/x86/gdbsx.c b/xen/arch/x86/gdbsx.c index adea0f017b..4cb8e042f9 100644 --- a/xen

[PATCH v3 1/6] arm/traps: remove debugger_trap_fatal() calls

2021-08-18 Thread Bobby Eshleman
ARM doesn't actually use debugger_trap_* anything, and is stubbed out. This commit simply removes the unneeded calls. Signed-off-by: Bobby Eshleman --- xen/arch/arm/traps.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c index 4ccb6

[PATCH v3 0/6] Remove unconditional arch dependency on asm/debugger.h

2021-08-18 Thread Bobby Eshleman
rily calls into the gdbstub… but further generalization is unnecessary while it is still only backed by the gdbstub. As I'm not *exactly* an expert on this code, so feel free to inform me of my confusion where you see it. Bobby Eshleman (6): arm/traps: remove debugger_trap_fatal() calls x8

[PATCH v2 4/4] x86/debug: move domain_pause_for_debugger to debugger.c

2021-07-14 Thread Bobby Eshleman
The function domain_pause_for_debugger() is conditionally compiled if CONFIG_CRASH_DEBUG=y. Instead of placing an extra #ifdef inside domain.c, this commit moves domain_pause_for_debugger() into x86/debugger.c which is only built by Kbuild given CONFIG_CRASH_DEBUG=y. Signed-off-by: Bobby

[PATCH v2 2/4] build: use common stubs for debugger_trap_* functions if !CONFIG_CRASH_DEBUG

2021-07-14 Thread Bobby Eshleman
Previously Xen required all architectures implement the debugger_trap_* functions whether or not it actually needs them. This commit makes debugger_trap* functions resolve to arch-specific function definitions if CONFIG_CRASH_DEBUG=y, but resolves to a set of common no-op stubs if !CONFIG_CRASH_DE

[PATCH v2 3/4] x86/debug: move debugger_trap_entry into debugger.c not inlined

2021-07-14 Thread Bobby Eshleman
The function debugger_trap_entry() is somewhat large for an inlined function. This commit moves debugger_trap_entry() into debugger.c and makes it not inlined. Signed-off-by: Bobby Eshleman --- Changes in v2: - Move obj-$(CONFIG_CRASH_DEBUG) += debugger.o to be in alphabetical order

[PATCH v2 1/4] arm/traps: remove debugger_trap_fatal() calls

2021-07-14 Thread Bobby Eshleman
ARM doesn't actually use debugger_trap_* anything, and is stubbed out. Simply remove the calls. This also renders TRAP_invalid_op unused in any common code, so remove that definition too. Signed-off-by: Bobby Eshleman --- xen/arch/arm/traps.c | 6 -- 1 file changed, 6 deletions(-)

[PATCH v2 0/4] Remove unconditional arch dependency on asm/debugger.h

2021-07-14 Thread Bobby Eshleman
code conditionally compiled by CONFIG_CRASH_DEBUG into arch/x86/debugger.c, which is now conditionally built for CONFIG_CRASH_DEBUG via Kbuild (i.e., obj-$(CONFIG_CRASH_DEBUG)). * Tries to improve the x86 implementation by not inlining large functions (but preserving inlining for those that seemed "small&

[PATCH 4/4] x86/debug: move domain_pause_for_debugger to debugger.c

2021-07-12 Thread Bobby Eshleman
The function domain_pause_for_debugger() is conditionally compiled if CONFIG_CRASH_DEBUG=y. Instead of placing an extra #ifdef inside domain.c, this commit moves domain_pause_for_debugger() into x86/debugger.c which is only built by Kbuild given CONFIG_CRASH_DEBUG=y. Signed-off-by: Bobby

[PATCH 3/4] x86/debug: move debugger_trap_entry into debugger.c not inlined

2021-07-12 Thread Bobby Eshleman
The function debugger_trap_entry() is rather large for an inlined function. This commit moves debugger_trap_entry() into debugger.c and makes it not inlined. Signed-off-by: Bobby Eshleman --- xen/arch/x86/Makefile | 1 + xen/arch/x86/debugger.c| 41

[PATCH 2/4] arm/traps: remove debugger_trap_fatal() calls

2021-07-12 Thread Bobby Eshleman
ARM doesn't actually use debugger_trap_* anything, and is stubbed out. Simply remove the calls. This also renders TRAP_invalid_op unused in any common code, so remove that definition too. Signed-off-by: Bobby Eshleman --- xen/arch/arm/traps.c | 6 -- xen/include/xen/debugger.

[PATCH 1/4] build: use common stubs for debugger_trap_* functions if !CONFIG_CRASH_DEBUG

2021-07-12 Thread Bobby Eshleman
!CONFIG_CRASH_DEBUG, which avoids requiring every arch to carry its own stubs. This means asm/debugger.h may also be dropped for architectures that do not need this functionality. Inside xen/debugger.h: * If !CONFIG_CRASH_DEBUG, use stubs. * Otherwise, include arch-specific Signed-off-by: Bobby

[PATCH 0/4] Remove unconditional arch dependency on asm/debugger.h

2021-07-12 Thread Bobby Eshleman
IG_CRASH_DEBUG into arch/x86/debugger.c, which is now conditionally built for CONFIG_CRASH_DEBUG via Kbuild (i.e., obj-$(CONFIG_CRASH_DEBUG)). * Tries to improve the x86 implementation by not inlining large functions (but preserving inlining for those that seemed "small"). Bobby Esh

Re: [PATCH v3 0/5] Support Secure Boot for multiboot2 Xen

2021-02-22 Thread Bobby Eshleman
Hey all, I just wanted to request more feedback on this series and put it on the radar, while acknowledging that I'm sure given the recent code freeze it is a busy time for everybody. Best, Bob

Re: [PATCH v3 1/5] xen: add XEN_BUILD_POSIX_TIME

2021-01-22 Thread Bobby Eshleman
On Fri, Jan 22, 2021 at 12:27:29PM +0100, Jan Beulich wrote: > On 22.01.2021 01:51, Bobby Eshleman wrote: > > export XEN_BUILD_DATE ?= $(shell LC_ALL=C date) > > export XEN_BUILD_TIME ?= $(shell LC_ALL=C date +%T) > > export XEN_BUILD_HOST ?= $(shell

Re: [PATCH v3 0/5] Support Secure Boot for multiboot2 Xen

2021-01-22 Thread Bobby Eshleman
On Fri, Jan 22, 2021 at 10:39:28AM +0100, Jan Beulich wrote: > On 22.01.2021 01:51, Bobby Eshleman wrote: > > I followed with v2 feedback and attempted to convert the PE/COFF header > > into C instead of ASM. Unfortunately, this was only possible for the > > first part (L

  1   2   >