Skip to content

Commit

Permalink
Merge pull request #35 from eric-ch/s9-oxt-1648
Browse files Browse the repository at this point in the history
S9: OXT-1648: input: Handle PVHv2 like PV guests.
  • Loading branch information
jean-edouard authored Jul 25, 2019
2 parents 41dc34b + 2f546c8 commit b67f92f
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 b67f92f

Please sign in to comment.