unsigned int rx_count, tx_count;
        unsigned int ret;
 
-       /* Check if we're running as a guest of a hypervisor */
-       if (!(mfmsr() & MSR_GS))
-               return;
-
        /* Verify the byte channel handle */
        ret = ev_byte_channel_poll(CONFIG_PPC_EARLY_DEBUG_EHV_BC_HANDLE,
                                   &rx_count, &tx_count);
 static void ehv_bc_console_write(struct console *co, const char *s,
                                 unsigned int count)
 {
-       unsigned int handle = (unsigned int)co->data;
+       unsigned int handle = (uintptr_t)co->data;
        char s2[EV_BYTE_CHANNEL_MAX_BYTES];
        unsigned int i, j = 0;
        char c;
                           CONFIG_PPC_EARLY_DEBUG_EHV_BC_HANDLE);
 #endif
 
-       ehv_bc_console.data = (void *)stdout_bc;
+       ehv_bc_console.data = (void *)(uintptr_t)stdout_bc;
 
        /* add_preferred_console() must be called before register_console(),
           otherwise it won't work.  However, we don't want to enumerate all the