Re: [Xen-devel] HVMOP_guest_request_vm_event only works from guest in ring0

2016-08-04 Thread Bread Cutter
My workaround for now is just something like int mode = hvm_guest_x86_mode(curr); uint32_t eax = regs->eax; +if(eax == 0xFACE) { +hvm_event_guest_request(); +return 1; +} + switch ( mode ) { case 8: This way I don't have to worry about if it's

[Xen-devel] HVMOP_guest_request_vm_event only works from guest in ring0

2016-08-03 Thread Bread Cutter
Hello all, I'm writing an executable that runs inside of a guest, and I planned to use vmcall to talk to a tool running in Dom0, using the vm_event API. It didn't work, and looking through the code, the first thing hvm_do_hypercall() does is check if the guest is in ring0. If not, it returns

[Xen-devel] Correctly mapping in a Dom0 page globally

2015-11-07 Thread Bread Cutter
Hello all, I'm mapping in some memory from Dom0 to use globally, based on a domctl that sends up a virtual address. It seems to be working for me so far. Here's my current code { struct page_info* page_info = NULL; l1_pgentry_t pte; /* Attempt to read the PTE that

Re: [Xen-devel] Mapping Dom0 page in hypervisor from domctl

2015-07-07 Thread Bread Cutter
-arch.hvm_domain.dom0_mapping.page_info = page_info; d-arch.hvm_domain.dom0_mapping.buffer = (uint8_t*)__map_domain_page(page_info); Thanks! On Mon, Jul 6, 2015 at 5:47 AM, Tim Deegan t...@xen.org wrote: Hi, At 08:14 -0400 on 02 Jul (1435824854), Bread Cutter wrote: /* Translate the given virtual address

[Xen-devel] Mapping Dom0 page in hypervisor from domctl

2015-07-02 Thread Bread Cutter
Hi all, I'm trying to map a page provided by Dom0 into Xen's address space, but I keep freezing the physical computer when I try. Maybe I'm hitting a spinlock or something, but clearly I'm doing something incorrectly. I'll probably be able to get farther once I have another computer with a serial