https://bugs.kde.org/show_bug.cgi?id=407377

--- Comment #1 from tim4...@bmail.ru ---
Related Linux kernel code (from
https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/vmwgfx/vmwgfx_msg.h#L56):
 

/drivers/gpu/drm/vmwgfx/vmwgfx_msg.h:56
```
/**
 * Hypervisor-specific bi-directional communication channel.  Should never
 * execute on bare metal hardware.  The caller must make sure to check for
 * supported hypervisor before using these macros.
 *
 * The last two parameters are both input and output and must be initialized.
 *
 * @cmd: [IN] Message Cmd
 * @in_ebx: [IN] Message Len, through EBX
 * @in_si: [IN] Input argument through SI, set to 0 if not used
 * @in_di: [IN] Input argument through DI, set ot 0 if not used
 * @port_num: [IN] port number + [channel id]
 * @magic: [IN] hypervisor magic value
 * @eax: [OUT] value of EAX register
 * @ebx: [OUT] e.g. status from an HB message status command
 * @ecx: [OUT] e.g. status from a non-HB message status command
 * @edx: [OUT] e.g. channel id
 * @si:  [OUT]
 * @di:  [OUT]
 */
#define VMW_PORT(cmd, in_ebx, in_si, in_di,     \
                 port_num, magic,               \
                 eax, ebx, ecx, edx, si, di)    \
({                                              \
        asm volatile ("inl %%dx, %%eax;" :      \
                "=a"(eax),                      \
                "=b"(ebx),                      \
                "=c"(ecx),                      \
                "=d"(edx),                      \
                "=S"(si),                       \
                "=D"(di) :                      \
                "a"(magic),                     \
                "b"(in_ebx),                    \
                "c"(cmd),                       \
                "d"(port_num),                  \
                "S"(in_si),                     \
                "D"(in_di) :                    \
                "memory");                      \
})
```

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to