ARM guest is considered as HVM in Freebsd but they only support PV nics
(no emulation available).
netfront_probe(device_t dev)
{
- if (xen_hvm_domain() && xen_disable_pv_nics != 0)
+ if (xen_pv_nics_disabled())
return (ENXIO);
if (!strcmp(xenbus_get_type(dev), "vif")) {
return (xen_hvm_domain() && xen_disable_pv_disks != 0);
}
+extern int xen_disable_pv_nics;
+
+static inline bool
+xen_pv_nics_disabled(void)
+{
+
+ return (xen_hvm_domain() && xen_disable_pv_nics != 0);
+}
+
#endif /* !__ASSEMBLY__ */
#endif /* _MACHINE_X86_XEN_XEN_OS_H_ */
/* XXX: we need to get rid of this and use HYPERVISOR_start_info directly */
extern char *console_page;
-extern int xen_disable_pv_nics;
-
enum xen_domain_type {
XEN_NATIVE, /* running on bare hardware */
XEN_PV_DOMAIN, /* running in a PV domain */