Make hypercalls arch-independent.
[deliverable/linux.git] / drivers / lguest / lg.h
index 203d3100c3b451456ca762a4dc582d10adc0be6c..00c869bd9f79c7f2ea3424677106bed8ae6ac5bb 100644 (file)
@@ -106,6 +106,9 @@ struct lguest
        u32 esp1;
        u8 ss1;
 
+       /* If a hypercall was asked for, this points to the arguments. */
+       struct hcall_args *hcall;
+
        /* Do we need to stop what we're doing and return to userspace? */
        int break_out;
        wait_queue_head_t break_wq;
@@ -194,6 +197,8 @@ void lguest_arch_host_init(void);
 void lguest_arch_host_fini(void);
 void lguest_arch_run_guest(struct lguest *lg);
 void lguest_arch_handle_trap(struct lguest *lg);
+int lguest_arch_init_hypercalls(struct lguest *lg);
+int lguest_arch_do_hcall(struct lguest *lg, struct hcall_args *args);
 
 /* <arch>/switcher.S: */
 extern char start_switcher_text[], end_switcher_text[], switch_to_guest[];
This page took 0.024493 seconds and 5 git commands to generate.