X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=linux_usr%2Fv3_user_host_dev.c;h=a0c1a9987bfb2ab4780e4afd3d9919097066d0c6;hb=82d082daad3fe8afad4be97d97093a3dfb768e1f;hp=6996bfada4caba8c59847404113b51b3f7ef9689;hpb=ae06bda339f919423d0a2291759850dcee3f85da;p=palacios.git diff --git a/linux_usr/v3_user_host_dev.c b/linux_usr/v3_user_host_dev.c index 6996bfa..a0c1a99 100644 --- a/linux_usr/v3_user_host_dev.c +++ b/linux_usr/v3_user_host_dev.c @@ -119,11 +119,24 @@ uint64_t v3_user_host_dev_write_guest_mem(int devfd, void *gpa, void *src, uint6 return do_user(devfd,&op); } -int v3_user_host_dev_inject_irq(int devfd, uint8_t irq) +int v3_user_host_dev_raise_irq(int devfd, uint8_t irq) { struct palacios_host_dev_user_op op; - op.type= PALACIOS_HOST_DEV_USER_REQUEST_IRQ_GUEST; + op.type= PALACIOS_HOST_DEV_USER_REQUEST_IRQ_RAISE_GUEST; + op.gpa=0; + op.data=0; + op.len=0; + op.irq=irq; + + return do_user(devfd,&op); +} + +int v3_user_host_dev_lower_irq(int devfd, uint8_t irq) +{ + struct palacios_host_dev_user_op op; + + op.type= PALACIOS_HOST_DEV_USER_REQUEST_IRQ_LOWER_GUEST; op.gpa=0; op.data=0; op.len=0;