Skip to content

Commit

Permalink
input: Handle PVHv2 like PV guests.
Browse files Browse the repository at this point in the history
This is done because, to input_server at least, the handling will be the
same: setup/connect to vkbd frontend.
It is less than ideal too since PVonHVM has been around for a while.
With the current rational, vkbd will not work on HVM guests with PV
support.

Signed-off-by: Eric Chanudet <[email protected]>

OXT-1648

(cherry picked from commit ccb32fc)
Signed-off-by: Eric Chanudet <[email protected]>
  • Loading branch information
Eric Chanudet committed Jul 25, 2019
1 parent 41dc34b commit 2f546c8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion domains.c
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,15 @@ domain_read_is_pv_domain(struct domain *d)
return;
}

d->is_pv_domain = !info.hvm;
/* For input-daemon, PVHv2 and PV guests are the same (vkbd, no controller emulation).
* This second test is the only way we have on 4.12 to differenciate
* through xc_domain_getinfo between HVM and PVHv2.
* Also, it is true on x86 only, LAPIC emulation is hard set by libxl
* (libxl_x86.c) and PVHv2 can only request LAPIC emulation, so no other
* flag can be set (xen/arch/x86/domain.c:arch_domain_create). */
d->is_pv_domain =
!info.hvm
|| (info.hvm && (info.arch_config.emulation_flags == XEN_X86_EMU_LAPIC));
}

static void
Expand Down

0 comments on commit 2f546c8

Please sign in to comment.