Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
#include <asm/dom0_build.h>
#include <asm/page.h>
#include <asm/pv/mm.h>
+#include <asm/pv/shim.h>
#include <asm/setup.h>
/* Allow ring-3 access in long mode as guest cannot use ring 1 ... */
if ( parms.elf_notes[XEN_ELFNOTE_SUPPORTED_FEATURES].type != XEN_ENT_NONE )
{
- if ( !test_bit(XENFEAT_dom0, parms.f_supported) )
+ if ( !pv_shim && !test_bit(XENFEAT_dom0, parms.f_supported) )
{
printk("Kernel does not support Dom0 operation\n");
rc = -EINVAL;