x86/pv: make guest_io_{read,write} local functions

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Wei Liu committed 2018-10-20 12:31:48 +01:00
1 parent 29b0678b3c
commit 6f407dc4fc
2 files changed
+4 -9

No files matched your search

+4 -4
View File
@@ -214,8 +214,8 @@ static bool pci_cfg_ok(struct domain *currd, unsigned int start,
pci_conf_write_intercept(0, machine_bdf, start, size, write) >= 0;
}
uint32_t guest_io_read(unsigned int port, unsigned int bytes,
struct domain *currd)
static uint32_t guest_io_read(unsigned int port, unsigned int bytes,
struct domain *currd)
{
uint32_t data = 0;
unsigned int shift = 0;
@@ -343,8 +343,8 @@ static int read_io(unsigned int port, unsigned int bytes,
return X86EMUL_OKAY;
}
void guest_io_write(unsigned int port, unsigned int bytes, uint32_t data,
struct domain *currd)
static void guest_io_write(unsigned int port, unsigned int bytes,
uint32_t data, struct domain *currd)
{
if ( admin_io_okay(port, bytes, currd) )
{
-5
View File
@@ -21,11 +21,6 @@
void async_exception_cleanup(struct vcpu *);
uint32_t guest_io_read(unsigned int port, unsigned int bytes,
struct domain *);
void guest_io_write(unsigned int port, unsigned int bytes, uint32_t data,
struct domain *);
const char *trapstr(unsigned int trapnr);
#endif /* ASM_TRAP_H */
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.