mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 14:45:24 +00:00
qemu: remove qemuGetDomainDefaultHugepath
It is no longer used. Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
07c6738460
commit
c264cb1b1c
@ -1899,30 +1899,6 @@ qemuGetDomainHugepagePath(const virDomainDef *def,
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* qemuGetDomainDefaultHugepath:
|
||||
* @def: domain definition
|
||||
* @hugetlbfs: array of configured hugepages
|
||||
* @nhugetlbfs: number of item in the array
|
||||
*
|
||||
* Callers must ensure that @hugetlbfs contains at least one entry.
|
||||
*
|
||||
* Returns 0 on success, -1 otherwise.
|
||||
* */
|
||||
char *
|
||||
qemuGetDomainDefaultHugepath(const virDomainDef *def,
|
||||
virHugeTLBFSPtr hugetlbfs,
|
||||
size_t nhugetlbfs)
|
||||
{
|
||||
virHugeTLBFSPtr p;
|
||||
|
||||
if (!(p = virFileGetDefaultHugepage(hugetlbfs, nhugetlbfs)))
|
||||
p = &hugetlbfs[0];
|
||||
|
||||
return qemuGetDomainHugepagePath(def, p);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* qemuGetDomainHupageMemPath: Construct HP enabled memory backend path
|
||||
*
|
||||
|
@ -374,9 +374,6 @@ int qemuTranslateSnapshotDiskSourcePool(virDomainSnapshotDiskDefPtr def);
|
||||
char * qemuGetBaseHugepagePath(virHugeTLBFSPtr hugepage);
|
||||
char * qemuGetDomainHugepagePath(const virDomainDef *def,
|
||||
virHugeTLBFSPtr hugepage);
|
||||
char * qemuGetDomainDefaultHugepath(const virDomainDef *def,
|
||||
virHugeTLBFSPtr hugetlbfs,
|
||||
size_t nhugetlbfs);
|
||||
|
||||
int qemuGetDomainHupageMemPath(const virDomainDef *def,
|
||||
virQEMUDriverConfigPtr cfg,
|
||||
|
Loading…
Reference in New Issue
Block a user