summaryrefslogtreecommitdiff
path: root/dev.h
blob: 2d5f0569668f37e2902667fe7e5f3ceb0e6471a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef DEV_H
#define DEV_H

#include <sys/socket.h>
#include "built_in.h"

extern size_t device_mtu(const char *ifname);
extern int device_address(const char *ifname, int af, struct sockaddr_storage *ss);
extern int device_ifindex(const char *ifname);
extern int device_type(const char *ifname);
extern short device_get_flags(const char *ifname);
extern void device_set_flags(const char *ifname, const short flags);
extern int device_up_and_running(const char *ifname);
extern u32 device_bitrate(const char *ifname);
extern short device_enter_promiscuous_mode(const char *ifname);
extern void device_leave_promiscuous_mode(const char *ifname, short oldflags);

#endif /* DEV_H */
='0' selected='selected'>unified
authorAndre Przywara <andre.przywara@arm.com>2016-11-16 17:57:16 +0000
committerMarc Zyngier <marc.zyngier@arm.com>2016-12-09 15:46:59 +0000
commit266068eabb1077adf7d74a66de6610e7a6205d02 (patch)
treed070029ff263a01a25fce431e08134e256c57f33 /Documentation/men-chameleon-bus.txt
parentfd5ebf99f814fadae0dd50893699ba17e1b4af42 (diff)
KVM: arm/arm64: vgic-v2: Limit ITARGETSR bits to number of VCPUs
The GICv2 spec says in section 4.3.12 that a "CPU targets field bit that corresponds to an unimplemented CPU interface is RAZ/WI." Currently we allow the guest to write any value in there and it can read that back. Mask the written value with the proper CPU mask to be spec compliant. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'Documentation/men-chameleon-bus.txt')